Creating Python virtualenv in Windows

Creating Python virtualenv in Windows

https://www.geeksforgeeks.org/creating-python-virtual-environment-windows-linux/?ref=rp

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

You can explicitly specify your path too.

Similarly like Linux you can deactivate it like

$ deactivate
原文链接:,转发请注明来源!

发表评论

要发表评论,您必须先登录