如何在pycharm

时间:2017-09-16 03:26:22

标签: python flask pip

如何在pycharm中为烧瓶项目安装bootstrap包时解决错误“非零退出代码(1)”

我正在尝试在pycharm中使用flask中的命令来安装我的项目所需的引导程序包。

这就是我写的内容:

from flask.ext.bootstrap import Bootstrap

但是,这会出现以下错误消息:

*Collecting Bootstrap*

  Could not find a version that satisfies the requirement Bootstrap (from versions: )
No matching distribution found for Bootstrap

我是编程新手,也是学习烧瓶网框架的新手。任何帮助都将受到高度赞赏。谢谢,周末愉快。enter image description here

1 个答案:

答案 0 :(得分:0)

从命令行使用以下命令。如果您使用的是virtualenv,请确保已激活您的环境。

pip install flask-bootstrap

现在也弃用from flask.ext.bootstrap import Bootstrap,请尝试使用from flask_bootstrap import Bootstrap