The gcc version used by python is not updated. The question is a bit like this, but unfortunately the answers do not help:
How to change default Python compiler in GCC?
I am using centOS 6.5 and installing anaconda 2.
Already changed the default version for GCC using this method
$ sudo yum install centos-release-scl
$ sudo yum install devtoolset-3-toolchain
$ echo "scl enable devtoolset-3 bash">>~/.bash_profile
$ scl enable devtoolset-3 bash
and also changed gcc in / usr / bin / gcc as related to the new one in devtoolset-3
When i use
$ gcc -v
Information will be similar to
gcc version 4.9.2 20150212 (Red Hat 4.9.2-6) (GCC)
however when i write python it still shows
Python 2.7.13 |Anaconda 4.3.1 (64-bit)| (default, Dec 20 2016, 23:09:15)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
source
share