Answer the question
In order to leave comments, you need to log in
Python on server showing wrong version?
Hello, I installed python 3.5
the python3.5 command gives version 3.5
the python3 command gives version 3.4 I set up the
Flask application
I put an virtual environment inside the project
virtualenv -p python3.5 envname
source envname/bin/activate I
put the
pip install flask there,
but when I'm already on I print the version of python sys.version on the site, he writes 3.4
This sys.executable outputs this "/usr/bin/python3"
I understand that my project does not use a virtual environment?
How can I get him to start using it?
here is the contents of the envname folder is everything ok here?
Answer the question
In order to leave comments, you need to log in
Write the full path in virtualenv to the version of Python you need:
virtualenv --python=/bin/usr/python3.5 envname
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question