No module named PIL in heroku though it is installed

后端 未结 2 861
别跟我提以往
别跟我提以往 2021-01-27 23:31

I have been trying to deploy a Django application on Heroku.

Some background - I hadn\'t used virtual environment while building the application but whi

相关标签:
2条回答
  • 2021-01-28 00:22

    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.

    0 讨论(0)
  • 2021-01-28 00:23

    If you are doing this in your view

    import PIL
    

    do this

    import Image
    
    0 讨论(0)
提交回复
热议问题