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!
Just a small tip, running “sudo curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | python -” applies sudo to the curl command but not to python so you may still get permission errors. Running “curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | sudo python -” fixes this problem.
When I got to this point:
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python -
The output I got was:
$curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | cat % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
I went here instead and used sudo apt-get install python-pip.
I see the notice to CentOS users at the top, but is this article perhaps directed only at CentOS users?
Thanks for this tutorial, it is exactly I was looking for. However I got some problems. I had to use this link to install pip instead of yours:
curl https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | python -
and I had to use sudo again. Since this, its necessary to use sudo with every pip command. Any idea how to fix this?
//edit: Okay, I think it is necessary to fix it, because I can run virtualenv and pip inside the virtualenv without sudo :)
@services506416, this tutorial is only for CentOS, therefore you are not able to use ‘apt-get’ (only debian/ubuntu). You have to use yum
Here is a video url How to install pip, virtualenv, django on Centos 7-- Django tutorial series lecture 1 that will help you much more than others because it’s so clear to understand.
For working with the python scripts without initiating the environment, my_app/bin/python python_script.py the above command will execute but will not take into considerations any custom PATHS setup in the activate script file. So we would need to activate the env, execute and deactivate. This solution helped me execute my virtualenv python script from cron, although deactivate won’t be mandatory for cron command.