Windows下python虚拟环境和配置


  1. pip install virtualenv
  2. 下载模块使用国内镜像:pip install -i https://pypi.douban.com/simple/ django
  3. 新建虚拟环境:virtualenv scrapytest
  4. cd scrapytest
  5. cd Scrapytest
  6. 运行:activate.bat
  7. 退出:deactivae.bat
  8. virtualenv -p C:\Users\Zhangfei\AppData\Local\Programs\Python\Python35\python.exe py3scrapy
  9. 进入虚拟环境:cd py3scrapy
  10. cd Scripts
  11. activate.bat
  12. deactivae.bat

 

  1. pip install virtualenvwrapper
  2. workon
  3. mkvirtualenv py2scrapy
  4. deactivate
  5. workon py2scrapy
  6. pip install -i https://pypi.douban.com/simple scrapy
  7. mkvirtualenv --python=C:\User\Zhangfei\AppData\Local\Programs\Pyhon35\python.exe py3scrapy
  8. deactivate


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM