我已经安装了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
谢谢!
答案 0 :(得分:0)
我已经使用下面的代码解决了这个问题(我已经在scrapy web Scrapy-1.1.0rc3-py2.py3-none-any.whl下载了一个whl文件到Scripts目录):
D:\Anaconda\Scripts>pip install Scrapy-1.1.0rc3-py2.py3-none-any.whl