Skip to content

Instantly share code, notes, and snippets.

@Mgregchi
Last active February 18, 2024 01:25
Show Gist options
  • Save Mgregchi/edd89f3d4c0896ed818d715354234595 to your computer and use it in GitHub Desktop.
Save Mgregchi/edd89f3d4c0896ed818d715354234595 to your computer and use it in GitHub Desktop.
Installing python pillow for Namecheap shared hosting project (Django / Flask)

Initial Step: Select and zip compress pillow related files locally.

Zip compress pillow files installed locally

Step1: Upload Zipped pillow files to Namecheap shared hosting file manager.

Step 2: Extract zipped pillow files into Namecheap hosted target projects site-packages inside the virtual. environment.

/home/shared-hosting-name/virtualenv/name-of-current-app/python-version/lib/python3.version/site-packages.

e.g:

/home/jane-doe-hosting/virtualenv/jane-doe-website/3.8/lib/python3.8/site-packages.

Run verification commands

python3 manage.py makemigrations.

python3 manage.py migrate.

Respectively. There should be no errors or warnings regarding Pillow. Kudos :)

@Mgregchi
Copy link
Author

Hello, what are the pillow files, can you name the ones we should zip

Hi, this was for Python 3.8 and issues experienced with Namcheap hosting 2 years ago, I don't know if it still works.

Perhaps Namcheap might have changed their requirements that was the actual cause of the problem...was regarding gcc and other system compilers.

Having noted that, it is all pillow files that has to be zipped, that is any directory with such name ``pillow*`.

pillow pillow-other-stuffs.

You as well have to use a local machine marching the one used by your hosting, name cheap defaults to Linux. So do the local installation on a Linux machine (any).

Sorry the accompanied images aren't available anymore.

@DeonHub
Copy link

DeonHub commented Feb 18, 2024

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment