I'm new to virtualenv, and was trying to get it working, in order to work with a given project. I've followed this guide to set it all up. As soon as I get in the virtualenv, pip stops working with the mentioned error.
The exact issue here being this:
(virtual-env) $ pip install --trusted-host pypi.python.org Django==1.11.4
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting Django==1.11.4
Could not fetch URL https://pypi.python.org/simple/django/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
Could not find a version that satisfies the requirement Django==1.11.4 (from versions: )
No matching distribution found for Django==1.11.4
...yes... --trusted-host
makes no difference... it seems, because it needs some package I cannot find.
Versions:
Python
$ python --version Python 3.6.2
Pip
$ pip --version # <- Edited pip 9.0.1
I did try to install the ssl module, but to no avail. Turns out you cannot install ssl with python 3. The problem is the print sintax.
[...]
File "/tmp/pip-build-undfmh27/ssl/setup.py", line 33
print 'looking for', f
^
SyntaxError: Missing parentheses in call to 'print'
Any help is appreciated