mac下pip安装scrapy失败

问题:macOS 10.12.1下pip安装scrapy失败,报错提示如下:

MacBook-Pro-6:site-packages $ sudo -H  pip install scrapy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

Password:

Looking in indexes: http://pypi.douban.com/simple/

Requirement already satisfied: scrapy in ./Scrapy-1.5.0-py2.7.egg (1.5.0)

Collecting Twisted>=13.1.0 (from scrapy)

  Downloading http://pypi.doubanio.com/packages/12/2a/e9e4fb2e6b2f7a75577e0614926819a472934b0b85f205ba5d5d2add54d0/Twisted-18.4.0.tar.bz2 (3.0MB)

    100% |████████████████████████████████| 3.0MB 6.2MB/s 

    Complete output from command python setup.py egg_info:

    Download error on https://pypi.python.org/simple/incremental/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found!

    Couldn't find index page for 'incremental' (maybe misspelled?)

    Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found!

    No local packages or working download links found for incremental>=16.10.1

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/private/tmp/pip-install-jwovyB/Twisted/setup.py", line 21, in <module>

        setuptools.setup(**_setup["getSetupArgs"]())

      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup

        _setup_distribution = dist = klass(attrs)

      File "/Library/Python/2.7/site-packages/setuptools/dist.py", line 317, in __init__

        self.fetch_build_eggs(attrs['setup_requires'])

      File "/Library/Python/2.7/site-packages/setuptools/dist.py", line 372, in fetch_build_eggs

        replace_conflicting=True,

      File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 846, in resolve

        dist = best[req.key] = env.best_match(req, ws, installer)

      File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 1118, in best_match

        return self.obtain(req, installer)

      File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 1130, in obtain

        return installer(requirement)

      File "/Library/Python/2.7/site-packages/setuptools/dist.py", line 440, in fetch_build_egg

        return cmd.easy_install(req)

      File "/Library/Python/2.7/site-packages/setuptools/command/easy_install.py", line 668, in easy_install

        raise DistutilsError(msg)

    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('incremental>=16.10.1')

    

    ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-install-jwovyB/Twisted/


找了网上很多文档,python官网下载scrapy包后,pip setup.py install还是一样的报错;偶然在https://stackoverflow.com/上看到一种解决方案,尝试了一下,果然成功了;但是却没有搞明白具体原因,具体操作如下:


MacBook-Pro-6:site-packages $ sudo pip install --upgrade incremental

Password:

The directory '/Users/haizhi/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/Users/haizhi/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting incremental

  Downloading https://files.pythonhosted.org/packages/f5/1d/c98a587dc06e107115cf4a58b49de20b19222c83d75335a192052af4c4b7/incremental-17.5.0-py2.py3-none-any.whl

scrapy 1.5.0 requires cssselect>=0.9, which is not installed.

scrapy 1.5.0 requires lxml, which is not installed.

scrapy 1.5.0 requires parsel>=1.1, which is not installed.

scrapy 1.5.0 requires PyDispatcher>=2.0.5, which is not installed.

scrapy 1.5.0 requires queuelib, which is not installed.

scrapy 1.5.0 requires service_identity, which is not installed.

scrapy 1.5.0 requires Twisted>=13.1.0, which is not installed.

scrapy 1.5.0 requires w3lib>=1.17.0, which is not installed.

matplotlib 1.3.1 requires nose, which is not installed.

matplotlib 1.3.1 requires tornado, which is not installed.

scrapy 1.5.0 has requirement six>=1.5.2, but you'll have six 1.4.1 which is incompatible.

Installing collected packages: incremental

Successfully installed incremental-17.5.0


发现提示说没有scrapy 1.5.0要求Twisted>=13.1.0,还没有安装,而Twisted在初始安装scrapy报错中有提到,觉得是有关系的,于是安装一下:

MacBook-Pro-6:site-packages $ sudo pip install Twisted

The directory '/Users/haizhi/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/Users/haizhi/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting Twisted

  Downloading https://files.pythonhosted.org/packages/12/2a/e9e4fb2e6b2f7a75577e0614926819a472934b0b85f205ba5d5d2add54d0/Twisted-18.4.0.tar.bz2 (3.0MB)

    100% |████████████████████████████████| 3.0MB 6.2MB/s 

Collecting zope.interface>=4.4.2 (from Twisted)

  Downloading https://files.pythonhosted.org/packages/ac/8a/657532df378c2cd2a1fe6b12be3b4097521570769d4852ec02c24bd3594e/zope.interface-4.5.0.tar.gz (151kB)

    100% |████████████████████████████████| 153kB 13.6MB/s 

Collecting constantly>=15.1 (from Twisted)

  Downloading https://files.pythonhosted.org/packages/b9/65/48c1909d0c0aeae6c10213340ce682db01b48ea900a7d9fce7a7910ff318/constantly-15.1.0-py2.py3-none-any.whl

Requirement already satisfied: incremental>=16.10.1 in /Library/Python/2.7/site-packages (from Twisted) (17.5.0)

Collecting Automat>=0.3.0 (from Twisted)

  Downloading https://files.pythonhosted.org/packages/a3/86/14c16bb98a5a3542ed8fed5d74fb064a902de3bdd98d6584b34553353c45/Automat-0.7.0-py2.py3-none-any.whl

Collecting hyperlink>=17.1.1 (from Twisted)

  Downloading https://files.pythonhosted.org/packages/a7/b6/84d0c863ff81e8e7de87cff3bd8fd8f1054c227ce09af1b679a8b17a9274/hyperlink-18.0.0-py2.py3-none-any.whl

Requirement already satisfied: setuptools in /Library/Python/2.7/site-packages (from zope.interface>=4.4.2->Twisted) (33.1.1)

Requirement already satisfied: six in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from Automat>=0.3.0->Twisted) (1.4.1)

Collecting attrs>=16.1.0 (from Automat>=0.3.0->Twisted)

  Downloading https://files.pythonhosted.org/packages/41/59/cedf87e91ed541be7957c501a92102f9cc6363c623a7666d69d51c78ac5b/attrs-18.1.0-py2.py3-none-any.whl

Requirement already satisfied: idna>=2.5 in /Library/Python/2.7/site-packages (from hyperlink>=17.1.1->Twisted) (2.7)

scrapy 1.5.0 requires cssselect>=0.9, which is not installed.

scrapy 1.5.0 requires lxml, which is not installed.

scrapy 1.5.0 requires parsel>=1.1, which is not installed.

scrapy 1.5.0 requires PyDispatcher>=2.0.5, which is not installed.

scrapy 1.5.0 requires queuelib, which is not installed.

scrapy 1.5.0 requires service_identity, which is not installed.

scrapy 1.5.0 requires w3lib>=1.17.0, which is not installed.

matplotlib 1.3.1 requires nose, which is not installed.

matplotlib 1.3.1 requires tornado, which is not installed.

scrapy 1.5.0 has requirement six>=1.5.2, but you'll have six 1.4.1 which is incompatible.

Installing collected packages: zope.interface, constantly, attrs, Automat, hyperlink, Twisted

  Found existing installation: zope.interface 4.1.1

    Uninstalling zope.interface-4.1.1:

      Successfully uninstalled zope.interface-4.1.1

  Running setup.py install for zope.interface ... done

  Running setup.py install for Twisted ... done

Successfully installed Automat-0.7.0 Twisted-18.4.0 attrs-18.1.0 constantly-15.1.0 hyperlink-18.0.0 zope.interface-4.5.0


因为重新装了Twisted,不放心,再sudo -H pip install --upgrade incremental更新一下incremental;更新完后,就开始回到装scrapy上:

MacBook-Pro-6:site-packages $ sudo -H  pip install scrapy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

Looking in indexes: http://pypi.douban.com/simple/

Requirement already satisfied: scrapy in ./Scrapy-1.5.0-py2.7.egg (1.5.0)

Requirement already satisfied: Twisted>=13.1.0 in /Library/Python/2.7/site-packages (from scrapy) (18.4.0)

Collecting w3lib>=1.17.0 (from scrapy)

  Downloading http://pypi.doubanio.com/packages/37/94/40c93ad0cadac0f8cb729e1668823c71532fd4a7361b141aec535acb68e3/w3lib-1.19.0-py2.py3-none-any.whl

Collecting queuelib (from scrapy)

  Downloading http://pypi.doubanio.com/packages/4c/85/ae64e9145f39dd6d14f8af3fa809a270ef3729f3b90b3c0cf5aa242ab0d4/queuelib-1.5.0-py2.py3-none-any.whl

Collecting lxml (from scrapy)

  Downloading http://pypi.doubanio.com/packages/5c/4c/aabf60136f633c3d00aae4fe1eb0c78663947e8d176a3a091ff6aa1d45ae/lxml-4.2.3-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (8.8MB)

    100% |████████████████████████████████| 8.8MB 804kB/s 

Requirement already satisfied: pyOpenSSL in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from scrapy) (0.13.1)

Collecting cssselect>=0.9 (from scrapy)

  Downloading http://pypi.doubanio.com/packages/7b/44/25b7283e50585f0b4156960691d951b05d061abf4a714078393e51929b30/cssselect-1.0.3-py2.py3-none-any.whl

Collecting six>=1.5.2 (from scrapy)

  Downloading http://pypi.doubanio.com/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl

Collecting parsel>=1.1 (from scrapy)

  Downloading http://pypi.doubanio.com/packages/fd/1a/9642a5ea68763d5e7c419df0873073e54bb23d0a8897d3c78e146dd6f355/parsel-1.5.0-py2.py3-none-any.whl

Collecting PyDispatcher>=2.0.5 (from scrapy)

  Downloading http://pypi.doubanio.com/packages/cd/37/39aca520918ce1935bea9c356bcbb7ed7e52ad4e31bff9b943dfc8e7115b/PyDispatcher-2.0.5.tar.gz

Collecting service_identity (from scrapy)

  Downloading http://pypi.doubanio.com/packages/29/fa/995e364220979e577e7ca232440961db0bf996b6edaf586a7d1bd14d81f1/service_identity-17.0.0-py2.py3-none-any.whl

Requirement already satisfied: zope.interface>=4.4.2 in /Library/Python/2.7/site-packages (from Twisted>=13.1.0->scrapy) (4.5.0)

Requirement already satisfied: constantly>=15.1 in /Library/Python/2.7/site-packages (from Twisted>=13.1.0->scrapy) (15.1.0)

Requirement already satisfied: incremental>=16.10.1 in /Library/Python/2.7/site-packages (from Twisted>=13.1.0->scrapy) (17.5.0)

Requirement already satisfied: Automat>=0.3.0 in /Library/Python/2.7/site-packages (from Twisted>=13.1.0->scrapy) (0.7.0)

Requirement already satisfied: hyperlink>=17.1.1 in /Library/Python/2.7/site-packages (from Twisted>=13.1.0->scrapy) (18.0.0)

Collecting functools32; python_version < "3.0" (from parsel>=1.1->scrapy)

  Downloading http://pypi.doubanio.com/packages/5e/1a/0aa2c8195a204a9f51284018562dea77e25511f02fe924fac202fc012172/functools32-3.2.3-2.zip

Collecting pyasn1 (from service_identity->scrapy)

  Downloading http://pypi.doubanio.com/packages/a0/70/2c27740f08e477499ce19eefe05dbcae6f19fdc49e9e82ce4768be0643b9/pyasn1-0.4.3-py2.py3-none-any.whl (72kB)

    100% |████████████████████████████████| 81kB 1.5MB/s 

Collecting pyasn1-modules (from service_identity->scrapy)

  Downloading http://pypi.doubanio.com/packages/19/02/fa63f7ba30a0d7b925ca29d034510fc1ffde53264b71b4155022ddf3ab5d/pyasn1_modules-0.2.2-py2.py3-none-any.whl (62kB)

    100% |████████████████████████████████| 71kB 2.7MB/s 

Requirement already satisfied: attrs in /Library/Python/2.7/site-packages (from service_identity->scrapy) (18.1.0)

Requirement already satisfied: setuptools in /Library/Python/2.7/site-packages (from zope.interface>=4.4.2->Twisted>=13.1.0->scrapy) (33.1.1)

Requirement already satisfied: idna>=2.5 in /Library/Python/2.7/site-packages (from hyperlink>=17.1.1->Twisted>=13.1.0->scrapy) (2.7)

matplotlib 1.3.1 requires nose, which is not installed.

matplotlib 1.3.1 requires tornado, which is not installed.

Installing collected packages: six, w3lib, queuelib, lxml, cssselect, functools32, parsel, PyDispatcher, pyasn1, pyasn1-modules, service-identity

  Found existing installation: six 1.4.1

Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.



有两处报错,需要安装matplotlib和不能写在six之类的,于是安装matplotlib,并且安装时把six注释掉:

MacBook-Pro-6:site-packages $ sudo python -mpip install -U matplotlib --ignore-installed six

The directory '/Users/haizhi/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/Users/haizhi/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting matplotlib

  Downloading https://files.pythonhosted.org/packages/61/38/d70e8bf77d5cb27d5f3595edd0b3978825063feadd023786d2591e393e6e/matplotlib-2.2.2-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (13.7MB)

    100% |████████████████████████████████| 13.7MB 1.9MB/s 

Collecting six

  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl

Collecting python-dateutil>=2.1 (from matplotlib)

  Downloading https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl (211kB)

    100% |████████████████████████████████| 215kB 17.9MB/s 

Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib)

  Downloading https://files.pythonhosted.org/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl (56kB)

    100% |████████████████████████████████| 61kB 15.5MB/s 

Collecting numpy>=1.7.1 (from matplotlib)

  Downloading https://files.pythonhosted.org/packages/b6/5e/4b2c794fb57a42e285d6e0fae0e9163773c5a6a6a7e1794967fc5d2168f2/numpy-1.14.5-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (4.7MB)

    100% |████████████████████████████████| 4.7MB 872kB/s 

Collecting pytz (from matplotlib)

  Downloading https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl (510kB)

    100% |████████████████████████████████| 512kB 12.1MB/s 

Collecting backports.functools-lru-cache (from matplotlib)

  Downloading https://files.pythonhosted.org/packages/03/8e/2424c0e65c4a066e28f539364deee49b6451f8fcd4f718fefa50cc3dcf48/backports.functools_lru_cache-1.5-py2.py3-none-any.whl

Collecting cycler>=0.10 (from matplotlib)

  Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl

Collecting subprocess32 (from matplotlib)

  Downloading https://files.pythonhosted.org/packages/fa/60/b50459f291cae6bc1d0ff711b75e5130684fd3949370fdba78f6c57c1903/subprocess32-3.5.2-cp27-cp27m-macosx_10_6_intel.whl

Collecting kiwisolver>=1.0.1 (from matplotlib)

  Downloading https://files.pythonhosted.org/packages/79/d8/94633718f3f77dcb638687a77ba199325a1cb158d2d4b00c9dc17f2b5c72/kiwisolver-1.0.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (110kB)

    100% |████████████████████████████████| 112kB 7.9MB/s 

Collecting setuptools (from kiwisolver>=1.0.1->matplotlib)

  Downloading https://files.pythonhosted.org/packages/ff/f4/385715ccc461885f3cedf57a41ae3c12b5fec3f35cce4c8706b1a112a133/setuptools-40.0.0-py2.py3-none-any.whl (567kB)

    100% |████████████████████████████████| 573kB 10.9MB/s 

scrapy 1.5.0 requires cssselect>=0.9, which is not installed.

scrapy 1.5.0 requires lxml, which is not installed.

scrapy 1.5.0 requires parsel>=1.1, which is not installed.

scrapy 1.5.0 requires PyDispatcher>=2.0.5, which is not installed.

scrapy 1.5.0 requires queuelib, which is not installed.

scrapy 1.5.0 requires service_identity, which is not installed.

scrapy 1.5.0 requires w3lib>=1.17.0, which is not installed.

Installing collected packages: six, python-dateutil, pyparsing, numpy, pytz, backports.functools-lru-cache, cycler, subprocess32, setuptools, kiwisolver, matplotlib

Successfully installed backports.functools-lru-cache-1.5 cycler-0.10.0 kiwisolver-1.0.1 matplotlib-2.2.2 numpy-1.14.5 pyparsing-2.2.0 python-dateutil-2.7.3 pytz-2018.5 setuptools-40.0.0 six-1.11.0 subprocess32-3.5.2



虽然有报错,但是也提示成功安装了很多模块,最后再次安装scrapy,发现没有报错了,并且写python时import scrapy不报错了,问题解决:

MacBook-Pro-6:site-packages $ sudo -H  pip install scrapy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

Looking in indexes: http://pypi.douban.com/simple/

Requirement already satisfied: scrapy in ./Scrapy-1.5.0-py2.7.egg (1.5.0)

Requirement already satisfied: Twisted>=13.1.0 in /Library/Python/2.7/site-packages (from scrapy) (18.4.0)

Collecting w3lib>=1.17.0 (from scrapy)

  Downloading http://pypi.doubanio.com/packages/37/94/40c93ad0cadac0f8cb729e1668823c71532fd4a7361b141aec535acb68e3/w3lib-1.19.0-py2.py3-none-any.whl

Collecting queuelib (from scrapy)

  Downloading http://pypi.doubanio.com/packages/4c/85/ae64e9145f39dd6d14f8af3fa809a270ef3729f3b90b3c0cf5aa242ab0d4/queuelib-1.5.0-py2.py3-none-any.whl

Collecting lxml (from scrapy)

  Downloading http://pypi.doubanio.com/packages/5c/4c/aabf60136f633c3d00aae4fe1eb0c78663947e8d176a3a091ff6aa1d45ae/lxml-4.2.3-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (8.8MB)

    100% |████████████████████████████████| 8.8MB 8.1MB/s 

Requirement already satisfied: pyOpenSSL in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from scrapy) (0.13.1)

Collecting cssselect>=0.9 (from scrapy)

  Downloading http://pypi.doubanio.com/packages/7b/44/25b7283e50585f0b4156960691d951b05d061abf4a714078393e51929b30/cssselect-1.0.3-py2.py3-none-any.whl

Requirement already satisfied: six>=1.5.2 in /Library/Python/2.7/site-packages (from scrapy) (1.11.0)

Collecting parsel>=1.1 (from scrapy)

  Downloading http://pypi.doubanio.com/packages/fd/1a/9642a5ea68763d5e7c419df0873073e54bb23d0a8897d3c78e146dd6f355/parsel-1.5.0-py2.py3-none-any.whl

Collecting PyDispatcher>=2.0.5 (from scrapy)

  Downloading http://pypi.doubanio.com/packages/cd/37/39aca520918ce1935bea9c356bcbb7ed7e52ad4e31bff9b943dfc8e7115b/PyDispatcher-2.0.5.tar.gz

Collecting service_identity (from scrapy)

  Downloading http://pypi.doubanio.com/packages/29/fa/995e364220979e577e7ca232440961db0bf996b6edaf586a7d1bd14d81f1/service_identity-17.0.0-py2.py3-none-any.whl

Requirement already satisfied: zope.interface>=4.4.2 in /Library/Python/2.7/site-packages (from Twisted>=13.1.0->scrapy) (4.5.0)

Requirement already satisfied: constantly>=15.1 in /Library/Python/2.7/site-packages (from Twisted>=13.1.0->scrapy) (15.1.0)

Requirement already satisfied: incremental>=16.10.1 in /Library/Python/2.7/site-packages (from Twisted>=13.1.0->scrapy) (17.5.0)

Requirement already satisfied: Automat>=0.3.0 in /Library/Python/2.7/site-packages (from Twisted>=13.1.0->scrapy) (0.7.0)

Requirement already satisfied: hyperlink>=17.1.1 in /Library/Python/2.7/site-packages (from Twisted>=13.1.0->scrapy) (18.0.0)

Collecting functools32; python_version < "3.0" (from parsel>=1.1->scrapy)

  Downloading http://pypi.doubanio.com/packages/5e/1a/0aa2c8195a204a9f51284018562dea77e25511f02fe924fac202fc012172/functools32-3.2.3-2.zip

Collecting pyasn1 (from service_identity->scrapy)

  Downloading http://pypi.doubanio.com/packages/a0/70/2c27740f08e477499ce19eefe05dbcae6f19fdc49e9e82ce4768be0643b9/pyasn1-0.4.3-py2.py3-none-any.whl (72kB)

    100% |████████████████████████████████| 81kB 9.7MB/s 

Collecting pyasn1-modules (from service_identity->scrapy)

  Downloading http://pypi.doubanio.com/packages/19/02/fa63f7ba30a0d7b925ca29d034510fc1ffde53264b71b4155022ddf3ab5d/pyasn1_modules-0.2.2-py2.py3-none-any.whl (62kB)

    100% |████████████████████████████████| 71kB 10.0MB/s 

Requirement already satisfied: attrs in /Library/Python/2.7/site-packages (from service_identity->scrapy) (18.1.0)

Requirement already satisfied: setuptools in /Library/Python/2.7/site-packages (from zope.interface>=4.4.2->Twisted>=13.1.0->scrapy) (40.0.0)

Requirement already satisfied: idna>=2.5 in /Library/Python/2.7/site-packages (from hyperlink>=17.1.1->Twisted>=13.1.0->scrapy) (2.7)

Installing collected packages: w3lib, queuelib, lxml, cssselect, functools32, parsel, PyDispatcher, pyasn1, pyasn1-modules, service-identity

  Running setup.py install for functools32 ... done

  Running setup.py install for PyDispatcher ... done

Successfully installed PyDispatcher-2.0.5 cssselect-1.0.3 functools32-3.2.3.post2 lxml-4.2.3 parsel-1.5.0 pyasn1-0.4.3 pyasn1-modules-0.2.2 queuelib-1.5.0 service-identity-17.0.0 w3lib-1.19.0










猜你喜欢

转载自blog.csdn.net/qq_42512064/article/details/80982470