鱼C论坛

 找回密码
 立即注册
查看: 1741|回复: 2

cmd 测试 scrapy version 报错

[复制链接]
发表于 2018-5-11 14:26:11 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
C:\Users\SmallLetters>scrapy -h
Traceback (most recent call last):
  File "e:\python36-32\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "e:\python36-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "E:\Python36-32\Scripts\scrapy.exe\__main__.py", line 5, in <module>
  File "e:\python36-32\lib\site-packages\scrapy\cmdline.py", line 9, in <module>
    from scrapy.crawler import CrawlerProcess
  File "e:\python36-32\lib\site-packages\scrapy\crawler.py", line 7, in <module>
    from twisted.internet import reactor, defer
  File "e:\python36-32\lib\site-packages\twisted\internet\reactor.py", line 39, in <module>
    default.install()
  File "e:\python36-32\lib\site-packages\twisted\internet\selectreactor.py", line 196, in install
    reactor = SelectReactor()
  File "e:\python36-32\lib\site-packages\twisted\internet\selectreactor.py", line 72, in __init__
    posixbase.PosixReactorBase.__init__(self)
  File "e:\python36-32\lib\site-packages\twisted\internet\base.py", line 515, in __init__
    self.installWaker()
  File "e:\python36-32\lib\site-packages\twisted\internet\posixbase.py", line 284, in installWaker
    self.waker = self._wakerFactory(self)
  File "e:\python36-32\lib\site-packages\twisted\internet\posixbase.py", line 79, in __init__
    client.connect(server.getsockname())
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-8-26 17:41:09 | 显示全部楼层
我把下载的包换成rar格式,解压放到C:\python\Lib\site-packages中,虽然在cmd还是报错,不过在python中可以使用scrapy模块了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-8-26 17:42:21 | 显示全部楼层
C:\Users\dhbsh>scrapy
Traceback (most recent call last):
  File "c:\programdata\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\programdata\anaconda3\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\ProgramData\Anaconda3\Scripts\scrapy.exe\__main__.py", line 4, in <module>
  File "C:\python\Lib\site-packages\scrapy\__init__.py", line 12, in <module>
    from scrapy.spiders import Spider
  File "C:\python\Lib\site-packages\scrapy\spiders\__init__.py", line 10, in <module>
    from scrapy.http import Request
  File "C:\python\Lib\site-packages\scrapy\http\__init__.py", line 11, in <module>
    from scrapy.http.request.form import FormRequest
  File "C:\python\Lib\site-packages\scrapy\http\request\form.py", line 10, in <module>
    import lxml.html
  File "C:\python\Lib\site-packages\lxml\html\__init__.py", line 53, in <module>
    from .. import etree
ImportError: cannot import name 'etree' from 'lxml' (C:\python\Lib\site-packages\lxml\__init__.py)

C:\Users\dhbsh>

我的一直报这个错误 ,大神能帮我看看是怎末回事吗
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-1-19 02:54

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表