Skip to content

Instantly share code, notes, and snippets.

@Mgregchi
Last active February 18, 2024 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 :)

@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