我正尝试使用
我已经为 Flask 应用程序文件夹授予了递归的 777 权限。
从上述堆栈跟踪中,我不确定出了什么问题。
任何帮助都将不胜感激。谢谢!
更新
我尝试使用 CentOS 7.6 的核心 Python(即 Python 2.7)来运行 Flask 应用程序,它可以正常工作!
我不确定为什么 Python 版本 3.5.6 安装在路径 /opt/mount1/python35 中后无法正常工作。
/opt/mount1/python35/bin/python3.5 notification.py
来运行Flask应用程序,但是我遇到了以下错误:WARNING:tensorflow:From /opt/mount1/python35/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
* Serving Flask app "notification" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: on
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
Traceback (most recent call last):
File "notification.py", line 19, in <module>
app.run(debug=True)
File "/opt/mount1/python35/lib/python3.5/site-packages/flask/app.py", line 943, in run
run_simple(host, port, self, **options)
File "/opt/mount1/python35/lib/python3.5/site-packages/werkzeug/serving.py", line 988, in run_simple
run_with_reloader(inner, extra_files, reloader_interval, reloader_type)
File "/opt/mount1/python35/lib/python3.5/site-packages/werkzeug/_reloader.py", line 332, in run_with_reloader
sys.exit(reloader.restart_with_reloader())
File "/opt/mount1/python35/lib/python3.5/site-packages/werkzeug/_reloader.py", line 176, in restart_with_reloader
exit_code = subprocess.call(args, env=new_environ, close_fds=False)
File "/opt/mount1/python35/lib/python3.5/subprocess.py", line 247, in call
with Popen(*popenargs, **kwargs) as p:
File "/opt/mount1/python35/lib/python3.5/subprocess.py", line 676, in __init__
restore_signals, start_new_session)
File "/opt/mount1/python35/lib/python3.5/subprocess.py", line 1289, in _execute_child
raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied
我已经为 Flask 应用程序文件夹授予了递归的 777 权限。
从上述堆栈跟踪中,我不确定出了什么问题。
任何帮助都将不胜感激。谢谢!
更新
我尝试使用 CentOS 7.6 的核心 Python(即 Python 2.7)来运行 Flask 应用程序,它可以正常工作!
我不确定为什么 Python 版本 3.5.6 安装在路径 /opt/mount1/python35 中后无法正常工作。