Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. 
This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):

原因很简单:Scrapy依赖six库,但是系统的six库比较老,安装scrapy需要卸载之后安装一个新的。但是Mac OS本身也依赖six,导致无法删除,因此没有办法安装Scrapy。

解决的方式是:使用virtualenv来安装。

1 sudo pip install virtualenv
2 virtualenv scrapyenv
3 cd scrapyenv
4 source bin/activate
5 pip install Scrapy

好了,可以使用scrapy startproject yourproject开始你的爬虫之旅了。

原文:http://blog.csdn.net/tangch0516/article/details/51378664

 

相关文章:

  • 2021-04-15
  • 2021-12-29
  • 2021-12-07
  • 2022-01-06
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-20
  • 2022-01-05
  • 2021-10-03
  • 2021-11-05
  • 2021-09-11
  • 2021-11-12
相关资源
相似解决方案