Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MatteusSouza/b46b6f7af089eb1f0be3f322f027abf8 to your computer and use it in GitHub Desktop.
Save MatteusSouza/b46b6f7af089eb1f0be3f322f027abf8 to your computer and use it in GitHub Desktop.
How to create a python virtualization environment

Python Virtualization Environment

How to create a python virtualization environment

If you use Windows to avoid errors with Windows PowerShell, follow these steps before proceeding.

Check that the pip is up to date and install virtualenv

python -m pip install --upgrade pip
pip install virtualenv

Make sure you are in the project's root folder to use the commands below

Use the command below to create a virtualenv with the name "venv" or another of your choice.

virtualenv venv

Activate the virtualenv you just created with this command

.\venv\Scripts\activate

The name you chose for virtualenv appears before the path, like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment