B
B
beginer1232016-08-07 00:04:13
ubuntu
beginer123, 2016-08-07 00:04:13

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?
2a623e48801e48f39b05f0f2bd68ba39.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valentin Zemlyakov, 2016-08-09
@zemlyakovv

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 question

Ask a Question

731 491 924 answers to any question