Mac 10 sudo pip install Scrapy 无法安装,抛出错误如下

2016-06-05 18:09:20 +08:00
 jack1545

warning: no files found matching 'license.txt' under directory 'scrapy' no previously-included directories found matching 'docs/build' warning: no files found matching '*' under directory 'bin' Requirement already satisfied (use --upgrade to upgrade): Twisted>=10.0.0 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from Scrapy) Downloading/unpacking w3lib>=1.14.2 (from Scrapy) Running setup.py egg_info for package w3lib

Downloading/unpacking queuelib (from Scrapy) Running setup.py egg_info for package queuelib

Requirement already satisfied (use --upgrade to upgrade): lxml in /Library/Python/2.7/site-packages (from Scrapy) Requirement already satisfied (use --upgrade to upgrade): pyOpenSSL in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from Scrapy) Downloading/unpacking cssselect>=0.9 (from Scrapy) Could not find any downloads that satisfy the requirement cssselect>=0.9 (from Scrapy) No distributions at all found for cssselect>=0.9 (from Scrapy) Storing complete log in /Users/ouyi/.pip/pip.log

2512 次点击
所在节点    Python
6 条回复
matthewz
2016-06-05 19:51:52 +08:00
Could not find any downloads that satisfy the requirement cssselect>=0.9 (from Scrapy) No distributions at all found for cssselect>=0.9 (from Scrapy)
jack1545
2016-06-05 23:39:56 +08:00
额。。网上都推荐用 pip 安装,一直装都找不到,应该是一键安装所有依赖库的呀,还有其他途径安装吗?
@matthewz
matthewz
2016-06-06 08:06:43 +08:00
@jack1545 更新一下 pip 手动安装试试 不行就源码编译安装
matthewz
2016-06-06 08:07:17 +08:00
@jack1545 正常情况下, pip 会自动拉取编译 Scrapy 依赖的其它 python 包,但由于 pip 可能调用 setuptools 去拉取依赖包,而后者可能因为 openssl 的原因,拉取依赖包失败。

http://blog.csdn.net/slvher/article/details/42346887
tkisme
2016-06-06 09:42:46 +08:00
不建议装到系统的 python 库,有问题的

The Apple-provided build of Python is installed in /System/Library/Frameworks/Python.framework and /usr/bin/python, respectively. You should never modify or delete these, as they are Apple-controlled and are used by Apple- or third-party software. Remember that if you choose to install a newer Python version from python.org, you will have two different but functional Python installations on your computer, so it will be important that your paths and usages are consistent with what you want to do.


来源: https://docs.python.org/3/using/mac.html
tkisme
2016-06-06 09:53:00 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/283668

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX