Python Django入門 (4)をやっていた時のエラーです。
modulenotfounderrorとoserrorが出てしまうのですがこれはなぜでしょうか?
settingspy
1INSTALLED_APPS = [ 2 'django.contrib.admin', 3 'django.contrib.auth', 4 'django.contrib.contenttypes', 5 'django.contrib.sessions', 6 'django.contrib.messages', 7 'django.contrib.staticfiles', 8 'cms.apps.CmsConfig', 9 'bootstrap4', # django-bootstrap4 10]
↓エラー
PS C:\lessonfield\kaki_kdjango\mybook> pip install django-bootstrap4 Requirement already satisfied: django-bootstrap4 in c:\anaconda\lib\site-packages (1.1.1) Requirement already satisfied: beautifulsoup4 in c:\anaconda\lib\site-packages (from django-bootstrap4) (4.8.0) Requirement already satisfied: soupsieve>=1.2 in c:\anaconda\lib\site-packages (from beautifulsoup4->django-bootstrap4) (1.9.3) PS C:\lessonfield\kaki_kdjango\mybook> python .\manage.py runserver Watching for file changes with StatReloader Exception in thread django-main-thread: Traceback (most recent call last): ~~~~~~~~~~~~~~~~~~~~~~~略~~~~~~~~~~~~~~~~~~~~~~~~ File "C:\Users\hoge\AppData\Local\Programs\Python\Python37\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named 'bootstrap4' Traceback (most recent call last): File ".\manage.py", line 21, in <module> main() ~~~~~~~~~~~~~~~~~~~~~~~略~~~~~~~~~~~~~~~~~~~~~~~~ File "C:\Users\hoge\AppData\Local\Programs\Python\Python37\lib\pathlib.py", line 1151, in resolve s = self._flavour.resolve(self, strict=strict) File "C:\Users\hoge\AppData\Local\Programs\Python\Python37\lib\pathlib.py", line 197, in resolve return self._ext_to_normal(_getfinalpathname(s)) OSError: [WinError 123] ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。: '<frozen importlib._bootstrap>'
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/01/28 06:47