CommandError: System check identified some issues:
ERRORS:
estore.Header.img: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.python.org/pypi/Pillow or run command "python -m pip install pillow".
products.Product.img: (fields.E210) Cannot use ImageField because Pillow is not installed.
HINT: Get Pillow at https://pypi.python.org/pypi/Pillow or run command "python -m pip install pillow".
我已安装最新版本的Pillow(7.2.0)
requirement already satisfied pillow in c:\users\admin\appdata\local\programs\python\python38\lib\site-packages (7.2.0)
我正在使用python 3.8.5,Visual Studio v16.7.0和Django 3.1 请帮帮我!
答案 0 :(得分:0)
尝试在您的虚拟环境中安装枕头!
cmd:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<main class="planning-main_rpv">
<section id="main-section">
<div id="horaire">
<div class="horaire">Horaires</div>
<div class="plage_rpv">08:00 - 08:30</div>
<div class="plage_rpv">08:30 - 09:00</div>
<div class="plage_rpv">09:00 - 09:30</div>
<div class="plage_rpv">09:30 - 10:00</div>
<div class="plage_rpv">10:00 - 10:30</div>
<div class="plage_rpv">10:30 - 11:00</div>
<div class="plage_rpv">11:00 - 11:30</div>
<div class="plage_rpv">11:30 - 12:00</div>
<div class="plage_rpv">12:00 - 12:30</div>
<div class="plage_rpv">12:30 - 13:00</div>
<div class="plage_rpv">13:00 - 13:30</div>
<div class="plage_rpv">13:30 - 14:00</div>
<div class="plage_rpv">14:00 - 14:30</div>
<div class="plage_rpv">14:30 - 15:00</div>
<div class="plage_rpv">15:00 - 15:30</div>
<div class="plage_rpv">15:30 - 16:00</div>
<div class="plage_rpv">16:00 - 16:30</div>
<div class="plage_rpv">16:30 - 17:00</div>
<div class="plage_rpv">17:00 - 17:30</div>
<div class="plage_rpv">17:30 - 18:00</div>
<div class="plage_rpv">18:00 - 18:30</div>
<div class="plage_rpv">18:30 - 19:00</div>
<div class="plage_rpv">19:00 - 19:30</div>
<div class="plage_rpv">19:30 - 20:00</div>
<div class="plage_rpv">20:00 - 20:30</div>
<div class="plage_rpv">20:30 - 21:00</div>
</div>
<div id=plannings_one>
</div>
</section>
</main>
</body>
</html>
如果这不起作用,请尝试以下操作:
workon [your virtual env]
pip install Pillow
答案 1 :(得分:-1)
我想我能够回答这个问题。
我的系统信息如下:
我在 Pillow 文档中发现测试的 Pillow 版本是 7.1.0
您可以阅读here.
为此,您需要启动 cmd 或 anaconda 提示符并输入
pip uninstall Pillow
pip install Pillow==7.1.0