manual QA blog

导航

install virtual enviroment on windows


H:\>pip install virtualenv  --install virtualenv
Collecting virtualenv
Downloading https://files.pythonhosted.org/packages/ed/ea/e20b5cbebf45d3096e8138ab74eda139595d827677f38e9dd543e6015bdf/virtualenv-15.2.0-py2.py3-none-any.whl (2.6MB)
100% |################################| 2.6MB 284kB/s
Installing collected packages: virtualenv
Successfully installed virtualenv-15.2.0

H:\>virtualenv --no-site-package d:\venv   --将新建的目录d:\venv作为一个独立的python环境
New python executable in d:\venv\Scripts\python.exe
Installing setuptools, pip, wheel...done.

D:\venv>d:\venv\Scripts\activate --直接执行这个activat bat文件,傻不拉几的执行了半天的source ..结果人家根本没有好吗。直接 执行这个文件就好了

(venv) D:\venv>  -- 切换成功

posted on 2018-05-10 10:21  xja  阅读(115)  评论(0编辑  收藏  举报