running Scrapy but it error: No module named _util

后端 未结 5 948
情歌与酒
情歌与酒 2020-12-20 15:49

I have installed Scrapy,and import it in python, every things look fine. But it cause error when i try a example in http://scrapy-chs.readthedocs.io/zh_CN/0.24/intro/tutoria

相关标签:
5条回答
  • 2020-12-20 16:15

    For some mac os x user, this might not solve the problem since the older version of pyOpenSSL never get uninstall. The way to solve it is to download the gz file from PyPI a link. Then unzip the compressed file. Navigate into it and then run the following command

    sudo python setup.py install

    Then pyOpenSSL is correctly updated.

    0 讨论(0)
  • 2020-12-20 16:18

    You are not activating the scrapy environment

    $source activate ScrapyEnvironment
    
    0 讨论(0)
  • 2020-12-20 16:21

    If you are using the newest version of Twisted. You can try downgrade Twisted:

    pip install Twisted==16.4.1
    
    0 讨论(0)
  • 2020-12-20 16:22

    This is the version problem and use the code to update:

    pip install --upgrade --ignore-installed pyopenssl
    
    0 讨论(0)
  • 2020-12-20 16:28

    you need upgrade pyopenssl

    sudo pip install pyopenssl --user --upgrade
    
    0 讨论(0)
提交回复
热议问题