Search This Blog

Sunday, November 18, 2018

After you install virtualenv, you can create a virtualenv in your project.

Use the --python flag to tell virtualenv which Python version to use:

cd your-project
virtualenv --python python3 env

If you want to stop using the virtualenv and go back to your global Python, you can deactivate it: