No module named flask using virtualenv

前端 未结 12 1386
生来不讨喜
生来不讨喜 2020-12-29 22:42

I am following these steps to learn flask http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world/page/0#comments

I ran this command to create

12条回答
  •  天命终不由人
    2020-12-29 23:17

    I am running Python on windows 7. I had same problem No module named flask.

    I tried reinstalling python, venv but it did not work.

    Finally i run it like this

    1. Install venv the usual way
    2. go to scripts directory and activate
    3. C:\Python34\microb>c:\Python34\microb\fla\scripts\python run.py
    4. here microb is my project and fla is venv

提交回复
热议问题