Hello I've been trying to add an ImageField for one of my models in my Django app. When I ran the following code:
python3 manage.py makemigrations
A statement came out, saying I needed to install Pillow, which I did ('Successfully installed Pillow-8.2.0').
However, when I tried to run makemigrations again, the following error occurred:
(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".
I am aware that there are several threads out there that have discussed similar issues (like python/django - "Cannot use ImageField because Pillow is not installed") and I have tried doing whatever was recommended (reinstalling 64-bit Python, upgrading pip, making sure I don't have PIL, attempting to install an older Pillow version) but none worked.
Particularly, attempting to install an older Pillow version caused errors with the following message:
Pillow 7.1.0 does not support Python 3.9 and does not provide prebuilt Windows binaries.
I am using Windows 10, Python 3.9, Django 3.2.0 and Pillow 8.2.0 . Would really appreciate it if anyone can help me with this, thank you!