1👍
pip install pillow==8.0.0 solved my problem. trying to install the latest version will give an error.
0👍
I think something like that should help (or whatever is an analog of "sudo apt install build-essential"):
yum install gcc gcc-c++ make
- [Answered ]-HighlightJS not highlighting certain code fragments
- [Answered ]-How to cascade an update in a one-to-many relationship?
- [Answered ]-(Hidden field id) Select a valid choice. That choice is not one of the available choices. (Django)
- [Answered ]-Accss ManyToMany through model attribute for spcific row in drf serilizaer
0👍
This may not be the best way to do it, but it has proved time and again to be effective and easy workaround.
This method is for Namecheap shared hosting as the question indicated.
Assuming you already Installed pillow Inside your local environment. Select all pillow file inside the "site-packages" folder and zip compress them as a copy.
Now go back to your namecheap hosting file manager and go to the location (current projects site-packages inside the virtual environment)
/home/abduxdcv/virtualenv/iffi-store-app/3.8/lib/python3.8/site-packages
(/home/shared-hosting-name/virtualenv/name-of-current-app/python-version/lib/python3.version/site-packages)
Upload the zipped PILLOW files and extract them into the site-packages folder you’re already in (Note location above)
Everything should work fine now. Confirm by running python3 manage.py makemigrations and migrate respectively. Since your projects uses models.ImageField() an error should occur if PILLOW isn’t working. If no errors continue with your project.
Unfortunately I can’t include screenshots of the said step because of reputation. I will look for workaround.
Step1: Zip compress installed pillow files locally.
Step 2: Upload the zipped PILLOW files and extract into Namecheap hosted target projects site-packages inside the virtual environment.
PS:
This is a quick answer, apologies for any bad construction.
Update: link to github gist Github Gist
- [Answered ]-Issues with display multiple images
- [Answered ]-Django appending /None to url
- [Answered ]-Django-taggit: can not have all the data with key in tags object
- [Answered ]-Python-social-auth failure on Google App Engine