Created
July 25, 2023 14:55
-
-
Save nprasad2077/d3c04617e3fba6c520dd65bd64e5d8a0 to your computer and use it in GitHub Desktop.
VENV settings python
This file contains hidden or 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
# ποΈ optionally store installed packages in a file | |
pip freeze > requirements.txt | |
# ποΈ deactivate | |
deactivate | |
# ποΈ Remove the old virtual environment folder: macOS and Linux | |
rm -rf venv | |
# ποΈ Remove the old virtual environment folder: Windows | |
rd /s /q "venv" | |
# ποΈ initialize a new virtual environment | |
python -m venv venv | |
# ποΈ activate on Unix or MacOS | |
source venv/bin/activate | |
# ποΈ activate on Windows (cmd.exe) | |
venv\Scripts\activate.bat | |
# ποΈ activate on Windows (PowerShell) | |
venv\Scripts\Activate.ps1 | |
# ποΈ upgrade your pip version | |
pip install --upgrade pip | |
# ποΈ install the modules in your requirements.txt file | |
pip install -r requirements.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment