installed flask successfully, still getting import error

后端 未结 2 1690
梦谈多话
梦谈多话 2020-12-22 01:57

I\'m working with flask and python for the first time trying to create a web app. I\'m on Windows 10 using Cygwin; for some reason, even though I\'ve successfully installed

相关标签:
2条回答
  • 2020-12-22 02:07

    You need to create a virtualenv and then install pip in that.

    virtualenv flasktest

    next,

    cd flasktest

    then,

    source bin/activate

    lastly,

    pip install flask

    You should be all good with running flask (only in the virtualenv, it will not work outside of it.)

    0 讨论(0)
  • 2020-12-22 02:18

    Try this if you don't want to use virtualenv:

    python -m pip install --upgrade pip
    python -m pip install flask
    
    0 讨论(0)
提交回复
热议问题