c3c*_*ris 11 python flask python-3.x
我正在使用python 3运行MacOS X.文件夹和文件有755但我也在777测试了它没有运气.我的问题是,如果我有正确的权限,为什么它不让我没有sudo运行.或者我的设置不正确?
cris-mbp:ProjectFolder cris$ python3 zbo.py
Traceback (most recent call last):
File "zbo.py", line 9, in <module>
app.run(host="127.0.0.1",port=81,debug=True)
File "/usr/local/lib/python3.5/site-packages/flask/app.py", line 843, in run
run_simple(host, port, self, **options)
File "/usr/local/lib/python3.5/site-packages/werkzeug/serving.py", line 677, in run_simple
s.bind((hostname, port))
PermissionError: [Errno 13] Permission denied
cris-mbp:ProjectFolder cris$ sudo python3 zbo.py
* Running on http://127.0.0.1:81/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger pin code: 106-133-233
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
19662 次 |
| 最近记录: |