Forums

Python 3.5.0 to 3.4.*

Hello,

I have written an app in django and wanted to upload it to here.

However when I add it and try to point to the virtualenv I get this error:

This virtualenv seems to have the wrong Python version (3.5 instead of 3.4).

This is my requirement.txt:

colorama==0.3.3
Django==1.8.6
django-braces==1.8.1
django-cors-headers==1.1.0
django-filter==0.11.0
django-oauth-toolkit==0.9.0
django-sslserver==0.15
djangorestframework==3.3.1
httpie==0.9.2
jsonfield==1.0.3
Markdown==2.6.4
oauthlib==1.0.1
Pygments==2.0.2
requests==2.8.1
six==1.10.0
wheel==0.24.0

Can someone please tell me how to revert to Python 3.4 without having to redo everything ?

EDIT: my problem is with the virtualenv. When I created it I linked it to the 3.5 version of python. I will just create new and link it to 2.7

Yup, that should work fine. Virtualenvs really aren't very portable; if you create one on one machine, there's no guarantee that it will work on another -- they have symlinks going out to files elsewhere on the system.