Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Another way to get the entire stack you need (on Python 2.6, 2.7 or 3.3) is to use the free Anaconda distribution and the open-source conda command:
Thank you *teoliphant. To solely achieve the results, surely, that works as well - and probably brilliantly too. But for some, the journey and what it offers is a must to experience before going further, as I’m sure you can appreciate. Cheers!
zlib-dev package doesn’t seem to available using yum. There seems to be a package ‘zlib-devel’ though.
This is a pretty good tutorial, but I think something is missing here. When I tried to build setuptool I got an error. I google it and solved it. Then, when installing pip I got another bounch of error. Errors from both compilation were about broken dependencies. I googled another time, and I think it could be avoided by installing them before compiling python:
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
I am running a brand new CentOS minimun box.
I get errors at the step of installing setuptools too…basically, I try to use python2.7 setup.py install:
running install error: can’t create or remove files in install directory
The following error occurred while trying to add or remove files in the installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/test-easy-install-22728.write-test'
The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:
/usr/local/lib/python2.7/site-packages/
Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or “root” account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable.
For information on other options, you may wish to consult the documentation at:
https://pythonhosted.org/setuptools/easy_install.html
Please make the appropriate changes for your system and try again.
If I try to use sudo before python 2.7, I get:
python2.7: can’t open file ‘sudo’: [Errno 2] No such file or directory
The location of the pip install script changed. Now that should be:
curl https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | python2.7 -
Followed this how to (except the optional pip and virtualenv) but on running python2.7 from bash, received the following message: Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
I did try to install pip but unable to install setuptools. Running python2.7 setup.py install gave the following error: ImportError: No module named itertools
Please advise. Thanks.
This is a very good article. I am still having trouble. I want to use python 2.7.(5) on centos 6.5 because I want to install most recent Tryton client. I have followed the steps herein, I think pretty much successfully, but something is missing. I can run the interpreter using $python2.7. But when I try to do anything else with pip or virtualenv, I am pretty sure they are still looking at the 2.6 interpreter. I have PATH set correctly to /usr/local/bin for the default installation of 2.7. (Strangely, /usr/local/bin is in the PATH twice already without exporting it from my shell.) I have considered setting PYTHONPATH in the shell. Any help is much appreciated.
Great article - very clear :)
One problem for me: pip got installed into my /usr/local/bin as pip3.4 - so the pip command was unavailable. Took me a while to figure that instead of pip install virtualenv its pip3.4 install virtualenv
Just in case others have the same problem…