Wymored Login

how create a venv and specify a python version

11 de janeiro de 2019 por Alexandre Miguel de Andrade Souza

We need to use virtualenv to allow choose a specific python version. To install it:

[sudo] pip install virtualenv

Then you can choose the python version like in [at directory of project]:

virtualenv -p python3.6 venv


virtualenv -p python2.7 venv

For last, remember for use the new venv:

source venv/bin/activate

For deactivate