安装scrapy报错

win10 pycharm virtualenv python3.5

(env) C:\Users\lg\PycharmProjects\untitled>pip3 install scrapy
You are using pip version 7.1.0, however version 18.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Collecting scrapyUsing cached https://pypi.tuna.tsinghua.edu.cn/packages/5d/12/a6197eaf97385e96fd8ec56627749a6229a9b3178ad73866a0b1fb377379/Scrapy-1.5.1-py2.py3-none-any.whl
Collecting w3lib>=1.17.0 (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/37/94/40c93ad0cadac0f8cb729e1668823c71532fd4a7361b141aec535acb68e3/w3lib-1.19.0-py2.py3-none-any.whl
Collecting parsel>=1.1 (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fd/1a/9642a5ea68763d5e7c419df0873073e54bb23d0a8897d3c78e146dd6f355/parsel-1.5.0-py2.py3-none-any.whl
Collecting service-identity (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/29/fa/995e364220979e577e7ca232440961db0bf996b6edaf586a7d1bd14d81f1/service_identity-17.0.0-py2.py3-none-any.whl
Collecting lxml (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ca/63/139b710671c1655aed3b20c1e6776118c62e9f9311152f4c6031e12a0554/lxml-4.2.4.tar.gz
Collecting pyOpenSSL (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/96/af/9d29e6bd40823061aea2e0574ccb2fcf72bfd6130ce53d32773ec375458c/pyOpenSSL-18.0.0-py2.py3-none-any.whl
Collecting queuelib (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4c/85/ae64e9145f39dd6d14f8af3fa809a270ef3729f3b90b3c0cf5aa242ab0d4/queuelib-1.5.0-py2.py3-none-any.whl
Collecting PyDispatcher>=2.0.5 (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/cd/37/39aca520918ce1935bea9c356bcbb7ed7e52ad4e31bff9b943dfc8e7115b/PyDispatcher-2.0.5.tar.gz
Collecting Twisted>=13.1.0 (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/90/50/4c315ce5d119f67189d1819629cae7908ca0b0a6c572980df5cc6942bc22/Twisted-18.7.0.tar.bz2
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in c:\users\lg\env\lib\site-packages (from scrapy)
Collecting cssselect>=0.9 (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7b/44/25b7283e50585f0b4156960691d951b05d061abf4a714078393e51929b30/cssselect-1.0.3-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): attrs in c:\users\lg\env\lib\site-packages (from service-identity->scrapy)
Collecting pyasn1-modules (from service-identity->scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/19/02/fa63f7ba30a0d7b925ca29d034510fc1ffde53264b71b4155022ddf3ab5d/pyasn1_modules-0.2.2-py2.py3-none-any.whl
Collecting pyasn1 (from service-identity->scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d1/a1/7790cc85db38daa874f6a2e6308131b9953feb1367f2ae2d1123bb93a9f5/pyasn1-0.4.4-py2.py3-none-any.whl
Collecting cryptography>=2.2.1 (from pyOpenSSL->scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/22/21/233e38f74188db94e8451ef6385754a98f3cad9b59bedf3a8e8b14988be4/cryptography-2.3.1.tar.gz
Requirement already satisfied (use --upgrade to upgrade): zope.interface>=4.4.2 in c:\users\lg\env\lib\site-packages (from Twisted>=13.1.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): constantly>=15.1 in c:\users\lg\env\lib\site-packages (from Twisted>=13.1.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): incremental>=16.10.1 in c:\users\lg\env\lib\site-packages (from Twisted>=13.1.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): Automat>=0.3.0 in c:\users\lg\env\lib\site-packages (from Twisted>=13.1.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): hyperlink>=17.1.1 in c:\users\lg\env\lib\site-packages (from Twisted>=13.1.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): PyHamcrest>=1.9.0 in c:\users\lg\env\lib\site-packages (from Twisted>=13.1.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): idna>=2.1 in c:\users\lg\env\lib\site-packages (from cryptography>=2.2.1->pyOpenSSL->scrapy)
Collecting asn1crypto>=0.21.0 (from cryptography>=2.2.1->pyOpenSSL->scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting cffi!=1.11.3,>=1.7 (from cryptography>=2.2.1->pyOpenSSL->scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gzComplete output from command python setup.py egg_info:Traceback (most recent call last):File "<string>", line 20, in <module>File "C:\Users\lg\AppData\Local\Temp\pip-build-zrr6q7_y\cffi\setup.py", line 120, in <module>if sys.platform == 'win32' and uses_msvc():File "C:\Users\lg\AppData\Local\Temp\pip-build-zrr6q7_y\cffi\setup.py", line 98, in uses_msvcreturn config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')File "C:\Program Files\python\lib\distutils\command\config.py", line 227, in try_compileself._compile(body, headers, include_dirs, lang)File "C:\Program Files\python\lib\distutils\command\config.py", line 133, in _compileself.compiler.compile([src], include_dirs=include_dirs)File "C:\Program Files\python\lib\distutils\_msvccompiler.py", line 315, in compileself.initialize()File "C:\Program Files\python\lib\distutils\_msvccompiler.py", line 208, in initializevc_env = _get_vc_env(plat_spec)File "C:\Program Files\python\lib\distutils\_msvccompiler.py", line 81, in _get_vc_envvcvarsall, vcruntime = _find_vcvarsall(plat_spec)File "C:\Program Files\python\lib\distutils\_msvccompiler.py", line 34, in _find_vcvarsallaccess=winreg.KEY_READ | winreg.KEY_WOW64_32KEYFileNotFoundError: [WinError 2] 系统找不到指定的文件。----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\lg\AppData\Local\Temp\pip-build-zrr6q7_y\cffi(env) C:\Users\lg\PycharmProjects\untitled>pip3 install scrapy
You are using pip version 7.1.0, however version 18.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Collecting scrapyUsing cached https://pypi.tuna.tsinghua.edu.cn/packages/5d/12/a6197eaf97385e96fd8ec56627749a6229a9b3178ad73866a0b1fb377379/Scrapy-1.5.1-py2.py3-none-any.whl
Collecting pyOpenSSL (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/96/af/9d29e6bd40823061aea2e0574ccb2fcf72bfd6130ce53d32773ec375458c/pyOpenSSL-18.0.0-py2.py3-none-any.whl
Collecting Twisted>=13.1.0 (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/90/50/4c315ce5d119f67189d1819629cae7908ca0b0a6c572980df5cc6942bc22/Twisted-18.7.0.tar.bz2
Collecting service-identity (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/29/fa/995e364220979e577e7ca232440961db0bf996b6edaf586a7d1bd14d81f1/service_identity-17.0.0-py2.py3-none-any.whl
Collecting w3lib>=1.17.0 (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/37/94/40c93ad0cadac0f8cb729e1668823c71532fd4a7361b141aec535acb68e3/w3lib-1.19.0-py2.py3-none-any.whl
Collecting lxml (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ca/63/139b710671c1655aed3b20c1e6776118c62e9f9311152f4c6031e12a0554/lxml-4.2.4.tar.gz
Collecting queuelib (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4c/85/ae64e9145f39dd6d14f8af3fa809a270ef3729f3b90b3c0cf5aa242ab0d4/queuelib-1.5.0-py2.py3-none-any.whl
Collecting parsel>=1.1 (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fd/1a/9642a5ea68763d5e7c419df0873073e54bb23d0a8897d3c78e146dd6f355/parsel-1.5.0-py2.py3-none-any.whl
Collecting PyDispatcher>=2.0.5 (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/cd/37/39aca520918ce1935bea9c356bcbb7ed7e52ad4e31bff9b943dfc8e7115b/PyDispatcher-2.0.5.tar.gz
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in c:\users\lg\env\lib\site-packages (from scrapy)
Collecting cssselect>=0.9 (from scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7b/44/25b7283e50585f0b4156960691d951b05d061abf4a714078393e51929b30/cssselect-1.0.3-py2.py3-none-any.whl
Collecting cryptography>=2.2.1 (from pyOpenSSL->scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/22/21/233e38f74188db94e8451ef6385754a98f3cad9b59bedf3a8e8b14988be4/cryptography-2.3.1.tar.gz
Requirement already satisfied (use --upgrade to upgrade): zope.interface>=4.4.2 in c:\users\lg\env\lib\site-packages (from Twisted>=13.1.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): constantly>=15.1 in c:\users\lg\env\lib\site-packages (from Twisted>=13.1.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): incremental>=16.10.1 in c:\users\lg\env\lib\site-packages (from Twisted>=13.1.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): Automat>=0.3.0 in c:\users\lg\env\lib\site-packages (from Twisted>=13.1.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): hyperlink>=17.1.1 in c:\users\lg\env\lib\site-packages (from Twisted>=13.1.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): PyHamcrest>=1.9.0 in c:\users\lg\env\lib\site-packages (from Twisted>=13.1.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): attrs>=17.4.0 in c:\users\lg\env\lib\site-packages (from Twisted>=13.1.0->scrapy)
Collecting pyasn1-modules (from service-identity->scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/19/02/fa63f7ba30a0d7b925ca29d034510fc1ffde53264b71b4155022ddf3ab5d/pyasn1_modules-0.2.2-py2.py3-none-any.whl
Collecting pyasn1 (from service-identity->scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d1/a1/7790cc85db38daa874f6a2e6308131b9953feb1367f2ae2d1123bb93a9f5/pyasn1-0.4.4-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): idna>=2.1 in c:\users\lg\env\lib\site-packages (from cryptography>=2.2.1->pyOpenSSL->scrapy)
Collecting asn1crypto>=0.21.0 (from cryptography>=2.2.1->pyOpenSSL->scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting cffi!=1.11.3,>=1.7 (from cryptography>=2.2.1->pyOpenSSL->scrapy)Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gzComplete output from command python setup.py egg_info:Traceback (most recent call last):File "<string>", line 20, in <module>File "C:\Users\lg\AppData\Local\Temp\pip-build-w927ga0y\cffi\setup.py", line 120, in <module>if sys.platform == 'win32' and uses_msvc():File "C:\Users\lg\AppData\Local\Temp\pip-build-w927ga0y\cffi\setup.py", line 98, in uses_msvcreturn config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')File "C:\Program Files\python\lib\distutils\command\config.py", line 227, in try_compileself._compile(body, headers, include_dirs, lang)File "C:\Program Files\python\lib\distutils\command\config.py", line 133, in _compileself.compiler.compile([src], include_dirs=include_dirs)File "C:\Program Files\python\lib\distutils\_msvccompiler.py", line 315, in compileself.initialize()File "C:\Program Files\python\lib\distutils\_msvccompiler.py", line 208, in initializevc_env = _get_vc_env(plat_spec)File "C:\Program Files\python\lib\distutils\_msvccompiler.py", line 81, in _get_vc_envvcvarsall, vcruntime = _find_vcvarsall(plat_spec)File "C:\Program Files\python\lib\distutils\_msvccompiler.py", line 34, in _find_vcvarsallaccess=winreg.KEY_READ | winreg.KEY_WOW64_32KEYFileNotFoundError: [WinError 2] 系统找不到指定的文件。----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\lg\AppData\Local\Temp\pip-build-w927ga0y\cffi

  google 能查到的方法基本都试了,but no use.

最后安装的twisted 17.9.0

如果要下载独立的twisted 17.9.0 whl 包,可以云这里: https://github.com/zerodhatech/python-wheels/blob/master/Twisted-17.9.0-cp35-cp35m-win_amd64.whl

或者直接: pip install twisted== 17.9.0

两次重新安装 scrapy, successful!

posted on 2018-08-22 08:23 Andy_963 阅读(...) 评论(...) 编辑 收藏

转载于:https://www.cnblogs.com/Andy963/p/9515574.html

安装scrapy报错相关推荐

  1. 解决:building 'twisted.test.raiser' extension安装scrapy报错

    解决:building 'twisted.test.raiser' extension     error: Microsoft Visual C++ 14.0 is required. Get it ...

  2. 安装scrapy报错failed with error code 1 in C:\Users\ADMINI~\AppData\Local\Temp\pip-install-4447ozxq\Twist

    安装scrapy的时候报错安装scrapy报错failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install- ...

  3. Deepin下安装scrapy报错fatal error: Python.h: 没有那个文件或目录

    Deepin下安装scrapy报错(亲测有效!) 问题描述 在deepin操作系统上,使用python3.6,通过sudo pip3 install scrapy安装时候,出现以下错误: src/tw ...

  4. anaconda安装scrapy报错解决办法

    今天在用anaconda安装scrapy的时候遇见个坑,现在将解决办法发出来,供大家参考使用: 问题描述: anaconda安装scrapy,使用 conda install scrapy 命令.安装 ...

  5. 安装scrapy报错failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-dvrc8k5o\Twis

    安装scrapy的时候报错failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-dvrc8k5o\T ...

  6. windows 下安装 scrapy报错:error: Unable to find vcvarsall.bat

    在windows 下通过pip install scrapy 时报错:error: Unable to find vcvarsall.bat:查看具体的错误信息看到是在 编译twisted 时报错: ...

  7. Mac os更新系统后安装scrapy报错error: command ‘xcrun‘ failed with exit status 1

    查看报错信息: In file included from src/twisted/test/raiser.c:4: In file included from /Library/Developer/ ...

  8. 【scrapy】Ubuntu安装scrapy报错:fatal error: Python.h: No such file or directory

    src/twisted/test/raiser.c:4:10: fatal error: Python.h: No such file or directory#include "Pytho ...

  9. pycharm安装pytorch报错 提示系列问题 torch 包找不到因为pip版本低,结果升级了pip从19.3到20.2 4又提示高版不支持torch安装

    pycharm安装pytorch报错 提示系列问题  torch 包找不到因为pip版本低,结果升级了pip从19.3到20.2 4又提示高版不支持torch安装 DEPRECATION: The - ...

最新文章

  1. jenkins的基本操作
  2. php把中文写入mysql_PHP向mysql插入中文乱码问题,php文件内容写入数据库!
  3. 学python能赚什么外卖-python实现外卖信息管理系统
  4. 外贸单证之信用证审核的18个要点
  5. python 切片 单冒号的作用[:](批量赋值最小数组单元)
  6. java获取数据库MetaData
  7. java设计模式建造_Java设计模式——建造模式(Builder Pattern)
  8. SQL Server 2000 没开1433端口的问题
  9. Js String转Int(Number与parseInt的区别)
  10. pandas 取excel 中的某一列_Excel快速分表(xlwings+pandas)
  11. (3.2)HarmonyOS鸿蒙双击事件
  12. 【经验分享】为什么后台取到的时间和前台差8个小时?
  13. BZOJ4737 组合数问题 【Lucas定理 + 数位dp】
  14. Web API-document
  15. 汇编语言 第一单元 整理(补充)
  16. 解决使用PowerShell执行命令出现“因为在此系统上禁止运行脚本”的问题
  17. mysql一主多从同步配置
  18. Godot Timer节点
  19. win7设置自动开机时间_想要服务器断电后自动开机,怎么设置?
  20. Yielding Processes

热门文章

  1. C++使用boost::bind 订阅消息中的返回函数传入多个参数
  2. 怎样合理地定义用户流失
  3. Google maps API开发(一)(转)
  4. sql 获取一个周的周一和周日
  5. 异常:The supplied data appears to be in the Office 2007+ XML
  6. 计算机招聘网站排名,2014年互联网名企招聘人数的高校
  7. 向园子里的朋友探讨一个问题:如果判定一个对象已被处置
  8. java io类型_Java NIO之Java中的IO分类
  9. 基于JDBC从数据库中读取数据,在百度地图批量标注地点
  10. python给定dna等分成两个序列_分析DNA序列中的串联重复序列