【问题标题】:Scrapy cannot be installed on windows10 with conda install使用 conda install 无法在 windows10 上安装 Scrapy
【发布时间】:2016-08-18 17:20:45
【问题描述】:

我已经安装了 Anaconda (python 3.5),我想安装 scrapy 但我不知道为什么它不起作用

输入命令:

D:\Anaconda\Scripts>conda install -c scrapinghub scrapy
D:\Anaconda\Scripts>conda install scrapy
D:\Anaconda\Scripts>conda install -c https://conda.anaconda.org/anaconda scrapy 

输出:

The following specifications were found to be in conflict:
  - cffi (target=cffi-1.5.2-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*
  - conda -> conda-env
  - conda -> menuinst
  - conda -> pycosat
  - conda -> python 2.7*
  - conda -> pyyaml
  - conda -> requests
  - conda-env (target=conda-env-2.4.5-py35_0.tar.bz2) -> python 2.7*|3.3*|3.4*|3.5*
  - cryptography (target=cryptography-1.3-py35_0.tar.bz2) -> cffi
  - cryptography (target=cryptography-1.3-py35_0.tar.bz2) -> idna 2.0|2.1
  - cryptography (target=cryptography-1.3-py35_0.tar.bz2) -> openssl 1.0.2g
  - cryptography (target=cryptography-1.3-py35_0.tar.bz2) -> pyasn1 0.1.7|0.1.8|0.1.9
  - cryptography (target=cryptography-1.3-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|
3.5*
  - cryptography (target=cryptography-1.3-py35_0.tar.bz2) -> setuptools
  - cryptography (target=cryptography-1.3-py35_0.tar.bz2) -> six
  - idna (target=idna-2.0-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*
  - lxml (target=lxml-3.6.0-py35_0.tar.bz2) -> python 2.6*|2.7*
  - menuinst (target=menuinst-1.3.2-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*
  - nose (target=nose-1.3.7-py35_0.tar.bz2) -> python 2.6*|2.7*
  - pip (target=pip-8.1.1-py35_1.tar.bz2) -> python 2.7*
  - pip (target=pip-8.1.1-py35_1.tar.bz2) -> wheel
  - pyasn1 (target=pyasn1-0.1.9-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*
  - pycosat (target=pycosat-0.6.1-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*
  - pycparser (target=pycparser-2.14-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*
  - pyopenssl (target=pyopenssl-0.15.1-py35_2.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5
*
  - python 3.5*
  - pyyaml (target=pyyaml-3.11-py35_3.tar.bz2) -> python 2.7*
  - requests (target=requests-2.9.1-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*
  - scrapy -> lxml
  - scrapy -> pyopenssl 0.14|0.15.1
  - scrapy -> python 2.6*|2.7*
  - scrapy -> setuptools
  - scrapy -> six
  - setuptools (target=setuptools-20.3-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5
*
  - six (target=six-1.10.0-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*
  - wheel (target=wheel-0.29.0-py35_0.tar.bz2) -> python 2.7*|3.3*|3.4*|3.5*
Use "conda info <package>" to see the dependencies for each package. 

请告诉我如何使用 py3.5 安装 scrapy

谢谢!

【问题讨论】:

    标签: python-3.x scrapy windows-10 anaconda


    【解决方案1】:

    我已经使用下面的代码解决了这个问题(我已经下载了一个 whl 文件到 scrapy webScrapy-1.1.0rc3-py2.py3-none-any.whl 中的 Scripts 目录):

    D:\Anaconda\Scripts>pip install Scrapy-1.1.0rc3-py2.py3-none-any.whl
    

    【讨论】:

    • 我使用了你的代码,但是有一个错误Error: Package missing in current win-64 channels:- scrapy 1.1.0rc3*这是否意味着scrapy不支持win10-64bit?
    • 我的错。你能试试conda install -c scrapinghub scrapy=1.1.0rc3吗?即指定“scrapinghub”频道
    • 我试了一下,但和上面一样的错误(删除 1.1.0rc3 它的工作)。顺便说一句,我不能在我的 anaconda4.0-64bit-py3.5 中使用scrapy。是不是twisted不支持64bit所以scrapy不能运行?
    • 根据this page,Twisted 适用于 Anaconda win 64bit。我自己还没有测试过这个组合。
    • 我看到了,但我的 Scrapy 仍然无法正常工作。Scrapy py3.5 不好:(
    猜你喜欢
    • 1970-01-01
    • 2021-04-18
    • 1970-01-01
    • 1970-01-01
    • 2017-05-15
    • 1970-01-01
    • 1970-01-01
    • 2019-06-06
    • 1970-01-01
    相关资源
    最近更新 更多