虚拟环境下,安装scrapy框架(清华镜像)
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ scrapy
When using pip install Twisted in virtualenv on Mac osx 10.9.4, I get this result:
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/9r/3b500gbs3093ms87mqqbckr80000gn/T/pip-build-doynftp7/twisted/
参考链接
https://stackoverflow.com/questions/42129767/pip-install-twisted-error-1/43895561#43895561
解决方式
这个问题卡了我好几个小时,最后发现关键在于更新incremental
- 更新incrementa
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade incremental
- 安装Twisted
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ Twisted
- 安装scrapy
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ scrapy
网友评论