mindcurrent / djanky-django

Daniel's Janky Attempt at a Django RESTful API Server
0 stars 1 forks source link

Install virtualenv (recommended for Django) #3

Open dpcunningham opened 5 years ago

dpcunningham commented 5 years ago

The Quick Install Guide breezily recommends:

Install an official release. This is the best approach for most users.

Yeah, and then they throw in: by the way, we recommend you do this virtualization first...

Cheeky bastards.

When you follow their teeny-tiny little link, you get to a shit-ton of warnings on this page

Well, let's see what we're dealing with here:

dpc@LT3-Insp17-2017:~$ pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)

Faaak. Mixing a 2.7 pip w/ a 3.6 python could be bad mojo. Even if this works, I'm gonna want a grizzled Pythonista to look it over!

OK, let's give it a go:

dpc@LT3-Insp17-2017:~$ pip install --user virtualenv
Collecting virtualenv
  Downloading https://files.pythonhosted.org/packages/8b/12/8d4f45b8962b03ac9efefe5ed5053f6b29334d83e438b4fe379d21c0cb8e/virtualenv-16.7.5-py2.py3-none-any.whl (3.3MB)
    100% |████████████████████████████████| 3.3MB 272kB/s 
Installing collected packages: virtualenv
Successfully installed virtualenv-16.7.5
dpc@LT3-Insp17-2017:~$