本文共 1475 字,大约阅读时间需要 4 分钟。
Microsoft Windows [版本 10.0.16299.492](c) 2017 Microsoft Corporation。保留所有权利。C:\Users\Administrator>pip install virtualenvRequirement already satisfied: virtualenv in c:\anaconda3\lib\site-packages (16.0.0)notebook 5.4.0 requires ipykernel, which is not installed.jupyter 1.0.0 requires ipykernel, which is not installed.jupyter-console 5.2.0 requires ipykernel, which is not installed.ipywidgets 7.1.1 requires ipykernel>=4.5.1, which is not installed.C:\Users\Administrator>
安装虚拟环境管理包():
详细方法()
pip install virtualenvwrapper win
如下:
C:\Users\Administrator>pip install virtualenvwrapper winRequirement already satisfied: virtualenvwrapper in c:\anaconda3\lib\site-packages (4.8.2)Collecting win Could not find a version that satisfies the requirement win (from versions: )No matching distribution found for winC:\Users\Administrator>
新建如下图:
然后确定保存,
然后如下:
C:\Users\Administrator>workonPass a name to activate one of the following virtualenvs:==============================================================================blogproject_envmxonlinepython2python3C:\Users\Administrator>
创建虚拟环境
C:\Users\Administrator>mkvirtualenv py3scrapyUsing base prefix 'c:\\anaconda3'New python executable in E:\Evns\py3scrapy\Scripts\python.exeInstalling setuptools, pip, wheel...done.(py3scrapy) C:\Users\Administrator>
然后在E:\Evns目录能看到所创建的虚拟环境:
转载地址:http://znvwo.baihongyu.com/