DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Aryan Absalan
Aryan Absalan

Posted on

Python’s Virtual Environments

execute the venv module, which is part of the Python standard library.
crating test-project folder
% cd test-project/
Creating an environment called venv
% python3 -m venv venv/

For activating the venv on Windows:
C:> \Scripts\activate.bat
installing the requirements of the project with:
pip install -r requirements.txt

You can deactivate a virtual environment by typing β€œdeactivate”
you can Remove virtual environments using rm:
rm -r your_ENV

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.