Error Cloudlinux LVE [install alt-python27-pip]

Handssler Lopez

Well-Known Member
Apr 30, 2019
90
34
18
Guatemala
cPanel Access Level
Root Administrator
Good evening friends, I am trying to install PIP on the server in a general way so that one of my users can use the pip command, as I use @CloudLinux Skhristich the installation command is:

yum install alt-python27-pip

after done I launch the command pip -V

root @ server [~] # pip -V
bash: pip: command not found

I try to reinstall thinking that there is some error:

root @ server [~] # yum install alt-python27-pip
Loaded plugins: fastestmirror, rhnplugin, universal-hooks
This system is receiving updates from CLN.
Loading mirror speeds from cached hostfile
* EA4: 74.50.120.123
* cpanel-addons-production-feed: 74.50.120.123
* cpanel-plugins: 74.50.120.123
* cloudlinux-base: repo.cloudlinux.com
* cloudlinux-updates: repo.cloudlinux.com
* cloudlinux-x86_64-server-7: us-east.cl-mirror.net
Package alt-python27-pip-20.2.4-1.el7.noarch already installed and latest version
Nothing to do

Can someone help me to know where my error is or how can I execute pip?
 

quietFinn

Well-Known Member
Feb 4, 2006
2,028
542
493
Finland
cPanel Access Level
Root Administrator
This might be obvious, but... do you have Python enabled in CloudLinux LVE Manager?
 

Handssler Lopez

Well-Known Member
Apr 30, 2019
90
34
18
Guatemala
cPanel Access Level
Root Administrator
This might be obvious, but... do you have Python enabled in CloudLinux LVE Manager?
If I have python enabled in lve, but still with the error, disable python in lve and follow the instructions in the following article: How to Install Pip on CentOS 7

Update PIP and I got a module error as I am running python27 so clear cache and reinstall again.

PIP currently works, it is early morning in my country, I will try more later and will continue to update before future errors and answers.
 

andrew.n

Well-Known Member
Jun 9, 2020
982
363
63
EU
cPanel Access Level
Root Administrator
I assume you also use CageFS? Can you try to rebuild it? or remove the user and add it again there.
 

cPAdminsMichael

Well-Known Member
Dec 19, 2016
191
72
153
Denmark
cPanel Access Level
Root Administrator
I don't have that much experience with pip to be honest.
I can se there are a general guide available here:

Alternatively, doing a repoquery -q -l --plugins alt-python27-pip shows that the pip binary is placed in /opt/alt/python27/bin/pip
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
I spoke with the CloudLinux team about this and they noticed that you are performing the installation with alt-python but making the call to the function under the system provided python. Can you adjust that and see if that gets things working?