推荐学习书目
› 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 · Jun 5, 2016 · 3143 views
    This topic created in 3763 days ago, the information mentioned may be changed or developed.

    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 replies  •  2016-06-06 09:53:00 +08:00
    matthewz
        1
    matthewz  
       Jun 5, 2016
    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
       Jun 5, 2016
    额。。网上都推荐用 pip 安装,一直装都找不到,应该是一键安装所有依赖库的呀,还有其他途径安装吗?
    @matthewz
    matthewz
        3
    matthewz  
       Jun 6, 2016
    @jack1545 更新一下 pip 手动安装试试 不行就源码编译安装
    matthewz
        4
    matthewz  
       Jun 6, 2016
    @jack1545 正常情况下, pip 会自动拉取编译 Scrapy 依赖的其它 python 包,但由于 pip 可能调用 setuptools 去拉取依赖包,而后者可能因为 openssl 的原因,拉取依赖包失败。

    http://blog.csdn.net/slvher/article/details/42346887
    tkisme
        5
    tkisme  
       Jun 6, 2016
    不建议装到系统的 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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   847 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:11 · PVG 05:11 · LAX 14:11 · JFK 17:11
    ♥ Do have faith in what you're doing.