Skip to content

新安装了wtpy以后,运行会报import包失败的问题 #54

Answered by wondertrader
wondertrader asked this question in Q&A
Discussion options

You must be logged in to vote

这个问题是因为wtpy有一些依赖包,如flask,虽然wtpy指定了flask的版本,但是flask自己的依赖包并没有指定版本号,所以全新安装以后,可能会出现版本不匹配的情况,导致报错。
解决思路是:重新安装合适版本的依赖包。
可以尝试重装一下依赖包:

pip install python-socketio==4.6.0 --upgrade
pip install python-engineio==3.13.2 --upgrade
pip install flask-socketio==4.3.1 --upgrade

pip install werkzeug==1.0.1 --upgrade
pip install itsdangerous==1.1.0 --upgrade
pip install MarkupSafe==1.1.1 --upgrade
pip install Jinja2==2.11.2 --upgrade

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wondertrader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant