Created
February 6, 2023 17:13
-
-
Save megpay/be0bf03384dd9777322d404a7fae9603 to your computer and use it in GitHub Desktop.
Create, check, activate, and delete virtual environments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a virtual env called myvirtualenv | |
virtualenv myvirtualenv | |
# activate the virtual environment and install everything from requirements | |
source myvirtualenv/bin/activate | |
pip install -r requirements.txt | |
# check which venv you are in | |
which python | |
# deactivate the venv | |
deactivate | |
# remove the venv | |
sudo rm -rf myvirtualenv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment