Python分布式爬虫课程 Scrapy打造搜索引擎-(2)虚拟环境配置
1.安装Python虚拟环境:pip install virtualenv
如果出现time out是由于pip 默认使用Python的官方源pypi.python.org/pypi,导致我们经常使用pip装包时速度过慢或者无法安装(请求超时)等问题,
所以国内用户建议使用pip 国内源。
目前常用的 pip 国内源有:
豆瓣:http://pypi.douban.com/simple/(推荐)
清华:http://pypi.tuna.tsinghua.edu.cn/simple
提示:Pyth
原创
2020-08-23 23:47:15 ·
193 阅读 ·
0 评论