无论何时运行服务器,都会弹出以下异常。 线程django主线程中出现异常:
以下是各自的回溯
Traceback (most recent call last):
File "C:\Users\sarathmahe024\AppData\Local\Programs\Python\Python39\lib\threading.py", line 954, in _bootstrap_inner
self.run()
File "C:\Users\sarathmahe024\AppData\Local\Programs\Python\Python39\lib\threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\sarathmahe024\Downloads\website\venv\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "C:\Users\sarathmahe024\Downloads\website\venv\lib\site-packages\django\core\management\commands\runserver.py", line 118, in inner_run
self.check(display_num_errors=True)
File "C:\Users\sarathmahe024\Downloads\website\venv\lib\site-packages\django\core\management\base.py", line 442, in check
raise SystemCheckError(msg)
django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues:
ERRORS:
web.Profile.image: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.org/project/Pillow/ or run command "python -m pip install Pillow".
System check identified 1 issue (0 silenced).
我已经安装了枕头,但在导入ImageField时显示错误
如果你对此有任何想法,请告诉我。先谢谢你
目前没有回答
相关问题 更多 >
编程相关推荐