title: How to change Anaconda Python default compiler to a newer version GCC?
body: <p>The version of gcc used by python is not updated. The question is a bit similar to this one but unfortunately the answers do not not help:</p>
  
  <p><a href="https://stackoverflow.com/questions/36189453/how-to-change-python-default-compiler-to-gcc">How to change Python default compiler to GCC?</a></p>
  
  <p>I am using centOS 6.5 and installing anaconda 2. </p>
  
  <p>Already changed the version for the default GCC using this way</p>
  
  <pre><code>$ sudo yum install centos-release-scl
  $ sudo yum install devtoolset-3-toolchain
  $ echo "scl enable devtoolset-3 bash"&gt;&gt;~/.bash_profile
  $ scl enable devtoolset-3 bash
  </code></pre>
  
  <p>and also changed the gcc in /usr/bin/gcc as linked to the new one in devtoolset-3</p>
  
  <p>When I use</p>
  
  <pre><code>$ gcc -v
  </code></pre>
  
  <p>The information would be like </p>
  
  <pre><code>gcc version 4.9.2 20150212 (Red Hat 4.9.2-6) (GCC) 
  </code></pre>
  
  <p>however when I type python it still shows</p>
  
  <pre><code>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
  </code></pre>