Flask - WSGI - No module named 'flask'

后端 未结 6 845
闹比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:34

    1. According to http://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html.

    2. You should edit /etc/apache2/sites-available/FlaskApp.conf

    3. Add these above the WSGIScriptAlias

      WSGIDaemonProcess FlaskApp python-home=/var/www/FlaskApp/FlaskApp/venv/FlaskApp WSGIProcessGroup FlaskApp

    I met the same problem and fix it by the way.

提交回复
热议问题