Setting up Python, Perl, and PEAR
How to create Python environments and install packages or modules for a script or application.
Beyond one-click applications, you can set up Python environments and install packages, Perl modules, or PEAR packages directly, for a script or application that needs them.
Where to find it
Click Python & Modules in the sidebar, under Applications, then switch between the Python, Perl, and PEAR tabs at the top.
Python
- Under Environments, create one by giving it a name and choosing a Python version. An environment keeps one application's packages separate from every other, so upgrading one site's packages can't break a different one.
- Click Packages next to an environment to install into it. Type a package name from PyPI, optionally pinned to a specific version, for example requests==2.32.3, and click Install.
If installing or removing packages stops working for an environment, its Repair button restores package management for it without losing what's already installed. Delete removes the environment and everything installed in it.
Perl
Type a module name from CPAN, for example JSON::XS, and install it. Perl modules can't be reliably uninstalled once installed, that's a limitation of CPAN itself, not something this panel restricts, so there's no remove button for them.
PEAR
Type a PEAR package name and install it, the same way as the other two.