最新版
Windows Server 2022
Windows Server 2022初始安装宝塔面板可以正常运行。当安装百度飞桨后(https://www.paddlepaddle.org.cn/install/quick)宝塔面板无法启动。
做过的尝试:
1. 猜测有多个python版本导致启动失败,参考此网页设置,任然无法启动:https://coder55.com/article/96629
2. 通过cmd命令行的bt命令,修复面板,任然失败
3. 卸载宝塔面板,重新安装,该方法可行,但是会导致百度飞桨无法启动,修复飞桨后,宝塔面板又无法启动,两者无法共存。
Traceback (most recent call last):
File "D:\BtSoft\panel/runserver.py", line 195, in <module>
from BTPanel import app,sys
File "D:\BtSoft\panel\BTPanel\__init__.py", line 23, in <module>
from flask_socketio import SocketIO,emit,send
File "C:\Program Files\python\lib\site-packages\flask_socketio\__init__.py", line 19, in <module>
from flask import _request_ctx_stack, has_request_context, json as flask_json
ImportError: cannot import name '_request_ctx_stack' from 'flask' (C:\Program Files\python\lib\site-packages\flask\__init__.py)
|
|