Anaconda中使用的python的Gcc版本 [英] Gcc version of python used within anaconda

查看:114
本文介绍了Anaconda中使用的python的Gcc版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改anaconda或虚拟环境中使用的python的gcc版本?现在,当我启动python时,它显示:

How do I change the gcc version of python used within anaconda or a virtual environment? Right now when I start python it shows:

[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] 

在Linux2上

这与/usr/bin/中系统级的 gcc 相同但是,我希望它使用版本/etc/scl/prefixes/devtoolset-2:这是 gcc 4.8

on linux2 This is the same as the system-wide gcc in /usr/bin/ However, I want it to use the version /etc/scl/prefixes/devtoolset-2: which is gcc 4.8

非常感谢.

推荐答案

Python向您显示了用来构建python 的编译器和版本,它在运行时未使用.用于构建python的GCC版本本身并不重要.

Python shows you the compiler and version that was used to build python, it doesn't use this at runtime. The version of GCC used to build python doesn't matter itself.

这篇关于Anaconda中使用的python的Gcc版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆