Skip to content

Instantly share code, notes, and snippets.

@irvingvjuarez
Last active February 19, 2023 13:44
Show Gist options
  • Save irvingvjuarez/ade9f37f589c5ccd87d0e626ac0739c3 to your computer and use it in GitHub Desktop.
Save irvingvjuarez/ade9f37f589c5ccd87d0e626ac0739c3 to your computer and use it in GitHub Desktop.
Command to create a virtual environment in windows

1 - Being Into the project where the environment will be created.

2 - Create the virtual environment: python -m venv [env_name]

3 - Activate the virtual environment in CMD: [env_name]\Scripts\activate.bat or source env/bin/activate

4 - Deactivate virtual environment: [env_name]\Scripts\deactivate.bat or deactivate

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