Forums

Python 2.7.10

I am getting SNIMissingWarning and some other warnings using my pythonanywhere application. To get rid of these, an upgrade is required from the 2.7.6 python version (default 2.7 served by pythonanywhere) to e.g. 2.7.10

I noticed that there is only 1 version of python 2.7 installed by default:

jd@pac:~$ ls -l /usr/bin/python2*
lrwxrwxrwx 1 0    9 Dec 21  2013 /usr/bin/python2 -> python2.7*
-rwxr-xr-x 1 0 2.8M Oct 22  2014 /usr/bin/python2.6*
-rwxr-xr-x 1 0 1.5K Oct 22  2014 /usr/bin/python2.6-config*
-rwxr-xr-x 1 0 3.2M Jun 22  2015 /usr/bin/python2.7*
lrwxrwxrwx 1 0   33 Jun 22  2015 /usr/bin/python2.7-config -> x86_64-linux-gnu-python2.7-config*
lrwxrwxrwx 1 0   16 Dec 21  2013 /usr/bin/python2-config -> python2.7-config*  
jd@pac:~$*

So now I am wondering how to install python 2.7.10 on pythonanywhere, and stumbled into this: http://stackoverflow.com/questions/5506110/is-it-possible-to-install-another-version-of-python-to-virtualenv

Is this the way to do it on pythonanywere, or are there better ways?

Hi there,

This is solved by installing urllib3[secure] (which we already have installed- you will only need to install that if you are using a virtualenv). However, the newest version of pip (<1 month ago) uses it's own forked version of urllib3, and so it has a warning (is this what you are seeing?), but when you use urllib3 you are actually using the patched version. See here. We are monitoring/waiting to see if this will get fixed soon before deciding what to do about it.