我正在尝试遵循本指南。我制作virtualenv
并安装flask
在其中:
Requirement already satisfied (use --upgrade to upgrade): Flask in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): Werkzeug>=0.7 in /usr/local/lib/python2.7/dist-packages (from Flask)
Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.4 in /usr/local/lib/python2.7/dist-packages (from Flask)
文件后pip freeze > requirements.txt
仅包含:
argparse==1.2.1
distribute==0.6.28
wsgiref==0.1.2
并且没有 Flask 包。我正在尝试运行简单的示例并得到:
ImportError: No module named flask
如何正确安装软件包?