CodingPython
Python virtual environment and dependencies installation
Python virtual environment and dependencies installation
1 Min20 Dec, 2021

For Python version 3.7 +

Make a director and execute the below command


python -m venv .

Activate the virtual env


source bin/activate

Run the PIP dependency


pip install -r requirements.txt

If pip requirement.txt is not available and you run the pip commands individually, to save the executed pip depedency in a requirement.txt


pip freeze > requirements.txt

To deactivate the venv


deactivate

Mrityunjay
© 2021, All Rights Reserved
Made In India 🇮🇳 with ❤️
Quick Links