To install Virtual Environment, run:
To activate specific environment run:
pip install virtualenv
To make a new environment:- go to the specific location:
cd C:\envs\
- and make new environment running:
virtualenv env
where env is the name for the environment.To activate specific environment run:
C:\envs\env\Scripts\activate.bat
To install a package, run:pip install package_name
or to install multiple modules from text file, run:pip install -r requirements.txt
To save installed requirements to a file, run:pip freeze > requirements.txt
To exit from current environment, run:deactivate
To remove the specific environment just delete it from the disc.
Comments
Post a Comment