2

How to resolve an error "Non-zero exit code (1)" while installing bootstrap package for a flask project in pycharm

I am trying following command in flask in pycharm to install a bootstrap package required for my project.

here is what I am writing:

from flask.ext.bootstrap import Bootstrap

However, this gives the following error message:

*Collecting Bootstrap*

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

I am new to programming, also very new to learning flask web framework. Any help here will be highly appreciated. Thanks and have a nice weekend.enter image description here

Zain
  • 33
  • 1
  • 1
  • 7

1 Answers1

0

Use the following from commandline. If you are using virtualenv make sure you have activated your environment.

pip install flask-bootstrap

Also from flask.ext.bootstrap import Bootstrap is deprecated now, try using from flask_bootstrap import Bootstrap

Nabin
  • 9,681
  • 7
  • 58
  • 91
  • Thanks for your quick response, but I am sorry I don't know whether virtualenv is activated or not. Actually, I don't know how to install it on Microsoft windows too. I am using Pycharm professional and I am working in a flask project in it. By the way I have used flask_bootstrap import Bootstrap command too, but it gives the same error message. – Zain Sep 16 '17 at 05:54
  • https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows – Nabin Sep 16 '17 at 07:36
  • I activated the virtualenv too. However, this time a different error: C:\Python27\lib\distutils\__init__.py:14: UserWarning: The virtualenv distutils package at %s appears to be in the same location as the system distutils? "The virtualenv distutils package at %s appears to be in the same location as the system distutils?") Could not find a version that satisfies the requirement Bootstrap (from versions: )." – Zain Sep 17 '17 at 01:58
  • On stackoverflow, we have to create another question if you come up to another problem. Please create another question so that I can help. Thanks – Nabin Sep 17 '17 at 02:00