I bootstrap3 installiert mitImport: Kein Modul namens bootstrap3
$ pip install django-bootstrap3
Es ist in diesem Verzeichnis installiert wird
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/
Django scheint in diesem Verzeichnis
/Users/shawnpike/anaconda/lib/python2.7/site-packages/django/
suchen zu werden, wenn Ich habe 'bootstrap3' in die Variable INSTALLED_APPS = ('bootstrap3') eingefügt und starte dann
$ python manage.py runserver
Ich erhalte diesen Fehler
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Users/shawnpike/anaconda/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/Users/shawnpike/anaconda/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/Users/shawnpike/anaconda/lib/python2.7/site-packages/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/shawnpike/anaconda/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/Users/shawnpike/anaconda/lib/python2.7/site-packages/django/apps/config.py", line 87, in create
module = import_module(entry)
File "/Users/shawnpike/anaconda/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named bootstrap3
I bootstrap3 im django Ordner installiert durch Kopieren und Einfügen verwenden und das hat nicht funktioniert. Jede Hilfe würde sehr geschätzt werden.
Vielen Dank!
in der Django-Shell, können Sie Bootstrap3 erfolgreich importieren? – karthikr
Nein, ich bekomme '--------------------------------------------- ------------------------------ ImportError Traceback (letzter Aufruf zuletzt) in () ----> 1 import bootstrap3 ImportError: Kein Modul namens bootstrap3 ' –
spike74
LOoks wie Sie haben 2 Installationen von Python. Ich würde Sie sehr ermutigen, virtuelle Umgebungen zu verwenden. http://StackOverflow.com/questions/1534210/use-different-python-version-with-virtualenv Auf diese Weise würde die Installation auf die aktuelle Version von Python – karthikr