问题
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)]
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
Many thanks.
回答1:
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.
来源:https://stackoverflow.com/questions/45101257/gcc-version-of-python-used-within-anaconda