On Centos6.6(Final) I want to install a newer version of python:
# wget
http://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz
# tar xvzf Python-2.7.7.tgz
# cd Python-2.7.7
# ./configure
# make
# make altinstall
It installed with no errors. I added the python2.7 path to PYTHONPATH and PATH. When I run the new version:
[Python-2.7.7]$ python2.7
Python 2.7.7 (default, Mar 2 2015, 16:59:59)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "/home/acameron/.pystartup", line 13, in <module>
import readline
ImportError: No module named readline
>>>
Do I need additional path information? What about the site-packages?
Thanks,
ANDY