title: how to update python 2.7 to python 3 in linux?
body: <p>My OS is CentOS 7.0. It's embedded python version is 2.7, and I want to update it to Python 3.4.</p>
  
  <p>when input the 
  <code>print sys.path</code></p>
  
  <p>output is:</p>
  
  <blockquote>
    <p>['', '/usr/lib/python2.7/site-packages/setuptools-5.8-py2.7.egg',
    '/usr/lib64/python27.zip', '/usr/lib64/python2.7',
    '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk',
    '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload',
    '/usr/lib64/python2.7/site-packages',
    '/usr/lib64/python2.7/site-packages/gtk-2.0',
    '/usr/lib/python2.7/site-packages']</p>
  </blockquote>
  
  <p>So, if I download the python 3.7, then ./configure , make , make install. Will it override all the python-related files ? Or if I use the </p>
  
  <blockquote>
    <p>./configure --prefix=***（some path）</p>
  </blockquote>
  
  <p>then is it safe to remove all the old python files or directory?</p>
  
  <p>In a word, hope someone gives me instructions about how to update to python 3 on linux. Thanks a lot.</p>