zoukankan      html  css  js  c++  java
  • 【转】pyspider all命令报错如下:ImportError: cannot import name 'DispatcherMiddleware' from 'werkzeug.wsgi'

    python中执行pyspider all命令报错如下:ImportError: cannot import name 'DispatcherMiddleware' from 'werkzeug.wsgi' (f:
    mypythonvenvlibsite-packageswerkzeugwsgi.py)

    因为pyspider源码版本缘故,把版本降下来,将wsgidav替换为2.4.1

    python -m pip  uninstall wsgidav     # 卸载
    python -m pip install werkzeug==2.4.1     #安装2.4.1版本

     安装成功后,重启启动pyspider依旧报错:

    发现还是版本的原因,werkzeug的版本为1.0.0,这个版本中没有DispatcherMiddleware方法,所以还是降低版本。

    注意降低版本不能低于0.15版本,因为我们的pyspider要求大于0.15版本以上

    python -m pip  uninstall werkzeug # 卸载
    python -m pip install werkzeug==0.16.1   #安装0.16.1版本

    再次启动终于成功!!!

    from:https://blog.csdn.net/lang_niu/article/details/104501473

    文章乃参考、转载其他博客所得,仅供自己学习作笔记使用!!!
  • 相关阅读:
    secFox setting
    Xmind settings lower
    Test435678
    Cmd管理员运行
    office install problems
    MSOCache office问题
    WeRun is mini-app
    解决谷歌跨域调试不可用
    xml文件读写
    c++ 矩阵运算库 Eigen等
  • 原文地址:https://www.cnblogs.com/xuan52rock/p/14393787.html
Copyright © 2011-2022 走看看