Forums

two different virtualenv versions - can't deploy yet

Hi, I have an issue with trying to upgrade the virtualenv on Pythonanywhere's console and make both my virtualenv on my computer and the console on pythonanywhere to use the exact same version - 15.0.2.

(venv) 19:18 ~ $ pip install virtualenv --upgrade
Collecting virtualenv
/home/kikilin90/.virtualenvs/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318:SNIMissingWarnin
g: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform.     This may cause 
the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of     Python to sol
ve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/home/kikilin90/.virtualenvs/venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122:     InsecurePlatform
Warning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause     certain SSL conne
ctions to fail. You can upgrade to a newer version of Python to solve this. For more information, see     https://urllib3.readthedocs.org/en/lat
est/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached virtualenv-15.0.2-py2.py3-none-any.whl
Installing collected packages: virtualenv
Successfully installed virtualenv-15.0.2
(venv) 19:23 ~ $ virtualenv --version
15.0.1

The last few lines of the console have me really confused. It said I successfully installed virtualenv-15.0.2, but it still said 15.0.1. I am not sure what I am missing here.

Hmm, you're installing virtualenv inside a virtualenv -- I didn't know that was even possible!

Perhaps it would be best to deactivate the virtualenv, then use

pip2.7 install --user --upgrade virtualenv

...to upgrade the version for your account?

Hmm..... Good question... I am going to try again and let you know!

It worked! If I may ask, how did you find the resource for the answer? Or is this from experience?

Anyways, thank you so much for the solution!

I think that was probably a guess from Giles' experience. Glad it's working now!