V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
jack1545
V2EX  ›  Python

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

  •  
  •   jack1545 · 2016-06-05 18:09:20 +08:00 · 2513 次点击
    这是一个创建于 3118 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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

    6 条回复    2016-06-06 09:53:00 +08:00
    matthewz
        1
    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
        2
    jack1545  
    OP
       2016-06-05 23:39:56 +08:00
    额。。网上都推荐用 pip 安装,一直装都找不到,应该是一键安装所有依赖库的呀,还有其他途径安装吗?
    @matthewz
    matthewz
        3
    matthewz  
       2016-06-06 08:06:43 +08:00
    @jack1545 更新一下 pip 手动安装试试 不行就源码编译安装
    matthewz
        4
    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
        5
    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
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3527 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 04:59 · PVG 12:59 · LAX 20:59 · JFK 23:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.