xxxxxxxxxx
for windows
make a directory using mkdir nameofthedirectory
enter the directory using cd
then enter the following :
>pip install virtualenv
then name the virtualenv
>virtualenv somename
then activate the virtualen
on Windows, virtualenv creates a batch file
>\yourvirtuallenname \Scripts\activate.bat
activate and deactivate venv on windows
xxxxxxxxxx
FOR WINDOWS
go to your virtualenv directory
cd \path\to\your\virtualenv\
and to activate run this
.\Scripts\bin\activate
to deactivate, go to your virutal env directory and run
.\Scripts\bin\deactivate
xxxxxxxxxx
#Creating Python virtualenv in Windows
#If python is installed in your system, then pip comes in handy.
#So simple steps are:
#1) Install virtualenv using
pip install virtualenv
#2)Now in which ever directory you are, this line below will create a virtualenv there
virtualenv myenv
#And here also you can name it anything.
#3) Now if you are same directory then type,
myenv\Scripts\activate
xxxxxxxxxx
#How to activate python virtual environment in windows 10
your-virtual-environment-name\Scripts\activate.bat
path\to\venv\Scripts\activate.bat
xxxxxxxxxx
Type this in your command prompt (cmd):
C:\Users\Owner\desktop> py -m venv env