-
To create a virtual environment inside the project
$ python -m venv env
-
To activate the virtual environment
$ env\scripts\activate
-
To check the list of package that has been installed
$ pip list
-
To install any package in that environment
$ pip install numpy
-
Create a requirement.txt
$ pip freeze > requirement.txt
-
To deactivate a virtual environment
$ deactivate
Created
March 24, 2021 19:23
-
-
Save hritik5102/1fd0816d62ca5bf9287410a661ffbc52 to your computer and use it in GitHub Desktop.
Python virtual environment setup
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment