Flask - WSGI - No module named 'flask'

后端 未结 6 848
闹比i
闹比i 2021-02-01 23:50

I\'ve been following Sentdex\' Flask tutorial. He\'s using a Venv to set up his Flask, but didn\'t set his Python up to work with a Venv. I\'ve tried installing Flask globally -

6条回答
  •  故里飘歌
    2021-02-02 00:32

    I wasted about 25 minutes finding a solution to this and after following all the other resources I could find, I also did the following:

    sudo apt-get install libapache2-mod-wsgi-py3
    

    Make sure to have '-py3' at the end of libapache2-mod-wsgi-py3 or the runtime will default to Python2.7

    Source: https://vishnut.me/blog/ec2-flask-apache-setup.html

提交回复
热议问题