宝塔用户_pwsxho 发表于 2023-8-2 19:15:14

【待反馈】py3.1运行项目报错No such file or directory: 'pybabel' 但

File "/www/wwwroot/ft-webui/run.py", line 22, in <module>create_babel(app)File "/www/wwwroot/ft-webui/server/babel.py", line 24, in create_babelcompile_translations()File "/www/wwwroot/ft-webui/server/babel.py", line 39, in compile_translationsresult = subprocess.run(File "/www/server/pyporject_evn/344da30168446005d807450a6be0f08f_venv/lib/python3.10/subprocess.py", line 501, in runwith Popen(*popenargs, **kwargs) as process:File "/www/server/pyporject_evn/344da30168446005d807450a6be0f08f_venv/lib/python3.10/subprocess.py", line 966, in __init__self._execute_child(args, executable, preexec_fn, close_fds,File "/www/server/pyporject_evn/344da30168446005d807450a6be0f08f_venv/lib/python3.10/subprocess.py", line 1842, in _execute_childraise child_exception_type(errno_num, err_msg, err_filename)FileNotFoundError: No such file or directory: 'pybabel'

宝塔用户_pwsxho 发表于 2023-8-2 19:15:56

File "/www/wwwroot/ft-webui/run.py", line 22, in <module>
create_babel(app)
File "/www/wwwroot/ft-webui/server/babel.py", line 24, in create_babel
compile_translations()
File "/www/wwwroot/ft-webui/server/babel.py", line 39, in compile_translations
result = subprocess.run(
File "/www/server/pyporject_evn/344da30168446005d807450a6be0f08f_venv/lib/python3.10/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/www/server/pyporject_evn/344da30168446005d807450a6be0f08f_venv/lib/python3.10/subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/www/server/pyporject_evn/344da30168446005d807450a6be0f08f_venv/lib/python3.10/subprocess.py", line 1842, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: No such file or directory: 'pybabel'

宝塔用户_pwsxho 发表于 2023-8-2 19:59:53

我已经安装了这个模块了 它非要说我没有安装

盏尽 发表于 2023-8-2 23:19:28

您好,报错信息提示找不到pybabel模块,您可到服务器终端执行以下命令进行安装后再访问面板看是否正常
btpip install pybabel

堡塔运维南一 发表于 2024-3-23 10:06:03

您好,这个问题解决了吗
页: [1]
查看完整版本: 【待反馈】py3.1运行项目报错No such file or directory: 'pybabel' 但