- pip install virtualenv
- 下载模块使用国内镜像:pip install -i https://pypi.douban.com/simple/ django
- 新建虚拟环境:virtualenv scrapytest
- cd scrapytest
- cd Scrapytest
- 运行:activate.bat
- 退出:deactivae.bat
- virtualenv -p C:\Users\Zhangfei\AppData\Local\Programs\Python\Python35\python.exe py3scrapy
- 进入虚拟环境:cd py3scrapy
- cd Scripts
- activate.bat
- deactivae.bat
- pip install virtualenvwrapper
- workon
- mkvirtualenv py2scrapy
- deactivate
- workon py2scrapy
- pip install -i https://pypi.douban.com/simple scrapy
- mkvirtualenv --python=C:\User\Zhangfei\AppData\Local\Programs\Pyhon35\python.exe py3scrapy
- deactivate
时间: 2024-11-05 16:23:36