Knowledgebase

Installing Dependencies for a Hosted Application Print

  • python, cpanel, support, guide, howto, solution, zillionkinghost, hosting
  • 0

Getting libraries in place.

WHERE THEY MUST GO

Into the virtual environment cPanel created for the application.

Not globally.

HOW TO DO IT

Activate the environment using the command the interface provides, then install.

Or use the interface's own facility for installing from a requirements file.

WHAT TO PROVIDE

A requirements file listing your dependencies with pinned versions.

WHY PINNED

So the installed environment matches what you tested.

WHAT TO DO AFTER INSTALLING

Restart the application.

Changes are not picked up until you do.

THAT POINT

The most common reason a change appears not to take effect.

WHAT CAN FAIL

Libraries requiring compilation Libraries requiring system packages Libraries needing more memory than available during installation

WHAT TO DO ABOUT EACH

Try a pure Python alternative Check whether a prebuilt version exists Open a ticket, describing what failed

WHAT TO KEEP

The requirements file in version control, so the environment is reproducible.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot