You can install the python modules using SSH:
1.) First off, you need to create virtual environment (virtualenv) in your account;
2.) Once the virtual environment is established, the required python modules can be installed through SSH. For this;
SSH into your server and navigate to /home/your_username/virtualenv/your_app_name/2.7/bin/ (Your virtual environment path) and for installing any package, run the following command:
./pip install modulename
Note: Replace "your_username" and "your_app_name" in the above command with your cPanel's account 'username' and your desired python 'application name'.
3.) After installation, it's required to enable/ add those modules from cPanel Interface.
a.) Go to 'Setup Python App' in cPanel;
b.) Setup 'New Application' (if it's not already);
c.) Add these packages to the list under your 'Existing Application' and then click update;
If you see error messages while trying to add the modules/ packages here, it's likely they will have to be installed manually using pip first (as discussed above in 2nd step).
- 26 Users Found This Useful
-
How do i install cpanel on my VPS or dedicated server?
cPanel is one of the most popular control panel within North America. As such, we've created a...
How to Install and Perform an MTR Report on linux?MTR is a powerful tool that combines the traceroute and ping utilities, allowing server...
What are the Windows Server 2012 System Requirements?Minimum: 1.4 GHz (64-bit processor) or 3.1 GHz (64-bit processor) Recommended: 2 GHz or faster...
Getting error ‘The domain already exists in the Apache configuration’ when adding an add-on or parked domain via cPanelThis might occurs when domain name never shows up under Add-on Domains in cPanel but actually it...
What is the difference between a VPS and a dedicated server?In VPS you share the physical server hardware but virtually have your own dedicated resources....