B
B
beginer1232016-08-06 20:24:36
ubuntu
beginer123, 2016-08-06 20:24:36

Python 3.5 not working in virtual environment?

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?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pan Propan, 2016-08-06
@mgis

source /env/bin/activate

F
fdrwitch, 2016-08-27
@fdrwitch

it's easier to work through
pyvenv-3.5 directory-to-work
also then through pip you put everything and control it (pip freeiz)
and the same source env-dir/bin/activate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question