前提・実現したいこと
atomでPythonのflakの勉強をしたいと思っている初心者です。
atom-runnerで実行停止をしたいです。
発生している問題・エラーメッセージ
Traceback (most recent call last): File "/Users/****/Library/Mobile Documents/com~apple~CloudDocs/Python/test2.py", line 9, in <module> app.run() File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 841, in run run_simple(host, port, self, **options) File "/usr/local/lib/python3.6/site-packages/werkzeug/serving.py", line 814, in run_simple inner() File "/usr/local/lib/python3.6/site-packages/werkzeug/serving.py", line 774, in inner fd=fd) File "/usr/local/lib/python3.6/site-packages/werkzeug/serving.py", line 666, in make_server passthrough_errors, ssl_context, fd=fd) File "/usr/local/lib/python3.6/site-packages/werkzeug/serving.py", line 577, in __init__ self.address_family), handler) File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socketserver.py", line 453, in __init__ self.server_bind() File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/server.py", line 136, in server_bind socketserver.TCPServer.server_bind(self) File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socketserver.py", line 467, in server_bind self.socket.bind(self.server_address) OSError: [Errno 48] Address already in use
該当のソースコード
Python
1rom flask import Flask 2 3app = Flask(__name__) 4 5@app.route('/') 6def index(): 7 return '<h1>Hello<h1>' 8if __name__ == '__main__': 9 app.run()
試したこと
ctrl+C ctrl+shift+Cなどはやってみましたが停止してくれません。
回答1件
あなたの回答
tips
プレビュー