virtualenv easy guide
程序员文章站
2022-06-06 16:06:25
...
1. Installation
You must have already installed python two versions, say python27 and python36.
Then you should have installed pip.
Run either pip or pip3 isntall virtualenv
You can type virtualenv -h
for help info.
Common params
-p used to designate the python version for this virtual environment you want to create.
2. Activate
Use the following commands in windows cmd line
virtualenv -p c:\python36\python.exe py36env
cd py36env
Scripts\activate
python
Then you will see the welcome message:
Python 3.6.0 (default, Jan 23 2017, 20:01:14) [MSC v.1900 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>>
If you want to deactivate, just type: Scripts\deactivate
in the same directory you executed activate
Enjoy
下一篇: 哪些肉类的碳水化合物比较少?
推荐阅读
-
easy ui datagrid 从编辑框中获取值的方法
-
Windows中安装使用Virtualenv来创建独立Python环境
-
ViewPager打造轮播图Banner/引导页Guide
-
Python开发之Nginx+uWSGI+virtualenv多项目部署教程
-
CentOS6.9 Python环境配置(python2.7、pip、virtualenv)
-
Python虚拟环境Virtualenv使用教程
-
Python环境管理-virtualenv和virtualenvwrapper
-
Python 虚拟环境:Virtualenv安装
-
Easy MOV Converter注册码
-
Easy CAD to SVG Converter如何使用?Easy CAD to SVG Converter安装使用教程