day*_*mer 12 intellij-idea pycharm flask
我正在使用IntelliJ IDEA 12 Ultimate Edition并创建烧瓶项目.
我使用IDEA创建了virtualenv并使用它,但是我的代码依赖于其他图书馆我继续前进.例如Flask-Restless.
我在IntelliJ IDEA中的代码看起来像

有没有办法使用IntelliJ IDEA 12安装Flak-Restless?
要么
我是否需要在命令行上激活我的virtualenv并自行安装?
这是IDEA可以提供给我的东西吗?
使用pip requirements.txt你的库的根。我会PyCharm自动提示我安装缺少的要求或安装的版本不等于requirements.txt。
您可以从安装软件包requirements.txt:
your_python_root_pip install -r requirements.txt
Run Code Online (Sandbox Code Playgroud)
您可以获得具有以下版本的已安装软件包:
your_python_root_pip freeze -r requirements.txt
Run Code Online (Sandbox Code Playgroud)
有关详细信息,请参见pip帮助。参见requirements.txt示例:
flask==0.9
flask-testing==0.4
blinker==1.2
uwsgi==1.4.5
nose
coverage
pep8
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10635 次 |
| 最近记录: |