2
1

More than 3 years have passed since last update.

Flaskアプリケーションをpythonコマンドで実行する際にOSError: [Errno 8] Exec format errorというエラーが出る

Posted at

解決策1

ファイルの1行目に#! /usr/bin/env pythonを追加する

解決策2

ファイルパーミッションを644に変更する。

解決策3

flask runでアプリケーションを実行する

参考リンク

https://github.com/pallets/flask/issues/3189
https://github.com/pallets/werkzeug/issues/1482

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1