Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

模块导入错误 ModuleNotFoundError: No module named 'werkzeug.contrib' #298

Open
fanhoodrex opened this issue Mar 30, 2020 · 3 comments

Comments

@fanhoodrex
Copy link

fanhoodrex commented Mar 30, 2020

按照文档执行import wechatsogou后,命令行出现以下的错误

Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wechatsogou
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Zacha\AppData\Local\Programs\Python\Python38-32\lib\site-packages\wechatsogou\__init__.py", line 16, in <module>
    from wechatsogou.api import WechatSogouAPI
  File "C:\Users\Zacha\AppData\Local\Programs\Python\Python38-32\lib\site-packages\wechatsogou\api.py", line 16, in <module>
    from wechatsogou.identify_image import (identify_image_callback_by_hand, unlock_sogou_callback_example, unlock_weixin_callback_example, ws_cache)
  File "C:\Users\Zacha\AppData\Local\Programs\Python\Python38-32\lib\site-packages\wechatsogou\identify_image.py", line 10, in <module>
    from wechatsogou.filecache import WechatCache
  File "C:\Users\Zacha\AppData\Local\Programs\Python\Python38-32\lib\site-packages\wechatsogou\filecache.py", line 3, in <module>
    from werkzeug.contrib.cache import FileSystemCache
ModuleNotFoundError: No module named 'werkzeug.contrib'

是我安装的方式不对还是我的本地的缺了什么文件或者第三方库吗?这个werkzeug.contrib又是什么呢?

@fanhoodrex fanhoodrex changed the title ModuleNotFoundError: No module named 'werkzeug.contrib' 模块导入错误 ModuleNotFoundError: No module named 'werkzeug.contrib' Mar 30, 2020
@ayjin-dev
Copy link

看项目栏中的requirements.txt的依赖包,然后一个一个自己装,装完后pip install wechatsogou即可。

@longjxchina
Copy link

看项目栏中的requirements.txt的依赖包,然后一个一个自己装,装完后pip install wechatsogou即可。

pip install -r requirements.txt时出错:
ERROR: astroid 2.3.3 has requirement six~=1.12, but you'll have six 1.10.0 which is incompatible.
请问怎么解决呢?

@longjxchina
Copy link

longjxchina commented Apr 24, 2020

按照文档执行import wechatsogou后,命令行出现以下的错误

Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wechatsogou
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Zacha\AppData\Local\Programs\Python\Python38-32\lib\site-packages\wechatsogou\__init__.py", line 16, in <module>
    from wechatsogou.api import WechatSogouAPI
  File "C:\Users\Zacha\AppData\Local\Programs\Python\Python38-32\lib\site-packages\wechatsogou\api.py", line 16, in <module>
    from wechatsogou.identify_image import (identify_image_callback_by_hand, unlock_sogou_callback_example, unlock_weixin_callback_example, ws_cache)
  File "C:\Users\Zacha\AppData\Local\Programs\Python\Python38-32\lib\site-packages\wechatsogou\identify_image.py", line 10, in <module>
    from wechatsogou.filecache import WechatCache
  File "C:\Users\Zacha\AppData\Local\Programs\Python\Python38-32\lib\site-packages\wechatsogou\filecache.py", line 3, in <module>
    from werkzeug.contrib.cache import FileSystemCache
ModuleNotFoundError: No module named 'werkzeug.contrib'

是我安装的方式不对还是我的本地的缺了什么文件或者第三方库吗?这个werkzeug.contrib又是什么呢?

安装这个即可解决:pip install Werkzeug==0.14.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants