No Module Named Pil In Heroku Though It Is Installed
I have been trying to deploy a Django application on Heroku. Some background - I hadn't used virtual environment while building the application but while deploying it, I had to use
Solution 1:
If you are doing this in your view
import PIL
do this
import Image
Solution 2:
Heroku? Access your application and manually run pip install -r requirements.txt
, then turn the application off and back on again.
I had this problem before, this step solved my problem.
Solution 3:
In my case I solved this issue by installing 'Pillow'... just try pip/pip3 install Pillow
and add it to your requirements.txt file.
Post a Comment for "No Module Named Pil In Heroku Though It Is Installed"