• 调用scrapy是出现incremental模块未找到的错误


    为什么调用scrapy是出现incremental模块未找到的错误,求各路大神解答


    下面是我测试是否安装成功scrapy的语句

    (17.5.0)C:Usersxiongjun>scrapy -h
    Traceback (most recent call last):
    File “e:programdataanaconda3librunpy.py”, line 193, in run_module_as_main
    main”, mod_spec)
    File “e:programdataanaconda3librunpy.py”, line 85, in run_code
    exec(code, run_globals)
    File "E:ProgramDataAnaconda3Scriptsscrapy.exe_main
    .py", line 5, in
    File "e:programdataanaconda3libsite-packagesscrapy_init
    .py", line 27, in
    from . import monkeypatches
    File “e:programdataanaconda3libsite-packagesscrapy_monkeypatches.py”, line 20, in
    import twisted.persisted.styles # NOQA
    File "e:programdataanaconda3libsite-packages wisted_init
    .py", line 11, in
    from twisted._version import version as version
    File “e:programdataanaconda3libsite-packages wisted_version.py”, line 8, in
    from incremental import Version
    ModuleNotFoundError: No module named ‘incremental’

    incrementa模块没找到
    但是我已经安装了这个模块
    语句如下:
    C:Usersxiongjun>pip install incremental

    Requirement already satisfied: incremental in e:programdataanaconda3libsite-packages
    显示已经安装成功

    但是调用scrapy的时候出现一下错误(注scrapy已经安装成功)
    scrapy安装语句:

    C:Usersxiongjun>pip install scrapy
    Requirement already satisfied: scrapy in e:programdataanaconda3libsite-packages (1.6.0)
    Requirement already satisfied: queuelib in e:programdataanaconda3libsite-packages (from scrapy) (1.5.0)
    Requirement already satisfied: cssselect>=0.9 in e:programdataanaconda3libsite-packages (from scrapy) (1.0.3)
    Requirement already satisfied: lxml in e:programdataanaconda3libsite-packages (from scrapy) (3.7.2)
    Requirement already satisfied: pyOpenSSL in e:programdataanaconda3libsite-packages (from scrapy) (16.2.0)
    Requirement already satisfied: PyDispatcher>=2.0.5 in e:programdataanaconda3libsite-packages (from scrapy) (2.0.5)
    Requirement already satisfied: service-identity in e:programdataanaconda3libsite-packages (from scrapy) (18.1.0)
    Requirement already satisfied: w3lib>=1.17.0 in e:programdataanaconda3libsite-packages (from scrapy) (1.20.0)
    Requirement already satisfied: six>=1.5.2 in e:programdataanaconda3libsite-packages (from scrapy) (1.10.0)
    Requirement already satisfied: parsel>=1.5 in e:programdataanaconda3libsite-packages (from scrapy) (1.5.1)
    Requirement already satisfied: Twisted>=13.1.0 in e:programdataanaconda3libsite-packages (from scrapy) (19.2.1)
    Requirement already satisfied: cryptography>=1.3.4 in e:programdataanaconda3libsite-packages (from pyOpenSSL->scrapy) (1.7.1)
    Requirement already satisfied: pyasn1-modules in e:programdataanaconda3libsite-packages (from service-identity->scrapy) (0.2.5)
    Requirement already satisfied: attrs>=16.0.0 in e:programdataanaconda3libsite-packages (from service-identity->scrapy) (19.1.0)
    Requirement already satisfied: pyasn1 in e:programdataanaconda3libsite-packages (from service-identity->scrapy) (0.1.9)
    Requirement already satisfied: Automat>=0.3.0 in e:programdataanaconda3libsite-packages (from Twisted>=13.1.0->scrapy) (0.7.0)
    Requirement already satisfied: hyperlink>=17.1.1 in e:programdataanaconda3libsite-packages (from Twisted>=13.1.0->scrapy) (19.0.0)
    Requirement already satisfied: incremental>=16.10.1 in e:programdataanaconda3libsite-packages (from Twisted>=13.1.0->scrapy) (17.5.0)
    Requirement already satisfied: zope.interface>=4.4.2 in e:programdataanaconda3libsite-packages (from Twisted>=13.1.0->scrapy) (4.6.0)
    Requirement already satisfied: constantly>=15.1 in e:programdataanaconda3libsite-packages (from Twisted>=13.1.0->scrapy) (15.1.0)
    Requirement already satisfied: PyHamcrest>=1.9.0 in e:programdataanaconda3libsite-packages (from Twisted>=13.1.0->scrapy) (1.9.0)
    Requirement already satisfied: idna>=2.0 in e:programdataanaconda3libsite-packages (from cryptography>=1.3.4->pyOpenSSL->scrapy) (2.8)
    Requirement already satisfied: setuptools>=11.3 in e:programdataanaconda3libsite-packagessetuptools-27.2.0-py3.6.egg (from cryptography>=1.3.4->pyOpenSSL->scrapy) (27.2.0)
    Requirement already satisfied: cffi>=1.4.1 in e:programdataanaconda3libsite-packages (from cryptography>=1.3.4->pyOpenSSL->scrapy) (1.9.1)
    Requirement already satisfied: pycparser in e:programdataanaconda3libsite-packages (from cffi>=1.4.1->cryptography>=1.3.4->pyOpenSSL->scrapy) (2.17)

    但是调用的时候出现这个错误

    File “E:ProgramDataAnaconda3libsite-packagesscrapy_init_.py”, line 27, in
    from . import monkeypatches
    File “E:ProgramDataAnaconda3libsite-packagesscrapy_monkeypatches.py”, line 20, in
    import twisted.persisted.styles # NOQA
    File "E:ProgramDataAnaconda3libsite-packages wisted_init
    .py", line 11, in
    from twisted._version import version as version
    File “E:ProgramDataAnaconda3libsite-packages wisted_version.py”, line 8, in
    from incremental import Version
    ModuleNotFoundError: No module named ‘incremental’

    incremental模块没找到
    但是我之前已经安装了
    这是为什么啊,求各路大神解答

    已解决
    重新安装Anaconda
    错误消失
    如果大家知道原理的话可以下面留言

    百度贴吧
    https://tieba.baidu.com/p/6196813648

  • 相关阅读:
    JavaScript的兼容小坑和调试小技巧
    前端jQuery实现瀑布流
    angular常用属性大全
    Eclipse易卡死
    工作反思
    半年回忆
    努力做到
    产品经理如何应对技术的「做不了」这样的问题(转)
    优秀的产品经理我还有多远
    简历技巧
  • 原文地址:https://www.cnblogs.com/Xiong-Jun/p/13515059.html
Copyright © 2020-2023  润新知