python/django - “Cannot use ImageField because Pillow is not installed”

后端 未结 11 1335
一向
一向 2021-01-17 11:38

I\'m joining a project, so I want to set up the environnment, so what I did is :

pip install -r requirements.txt

This fully installed all r

11条回答
  •  长发绾君心
    2021-01-17 11:54

    I had the same problem in my virtual environment, even though Pillow was installed. Also installing a lower version didn't help. As soon I left my virtual environment it worked. Maybe this is helping someone.

    There is the command:

        (wb_env) C:\Users\Taranis\Dropbox\08_Coding\Python 
        Coding\Programme\Projekt_Webblog\tim_webblog>python manage.py makemigrations app_webblog
    

    The error:

        SystemCheckError: System check identified some issues:
    
        ERRORS:
        app_webblog.BlogEntry.entry_img: (fields.E210) Cannot use ImageField because 
        Pillow is not installed.
        HINT: Get Pillow at https://pypi.org/project/Pillow/ or run command "pip install 
        Pillow".
    

提交回复
热议问题