[CentOS] Semi-OT: install python package in userspace

m.roth at 5-cent.us
Fri, 06 Apr 2018 16:53:54 -0000

Richard Demeny wrote:
> Just sudo it
>
> On Fri, 6 Apr 2018 17:25 , <m.roth at 5-cent.us> wrote:
>
>> CentOS 7 box. As there's no package in any of the repos, we're
trying to
>> install scikit-learn in the user's space. It refuses. My late try
was,
>> after d/l a .whl from last year, hoping that would work with the numpy
>> package in the regular repos, I did a pip install --user
>> scikit-learn...,
>> and it still seems to want to write to system space: OSError: [Errno
13]
>> Permission denied:
>> '/usr/lib64/python2.7/site-packages/numpy-1.7.1.dist-info
>>
>> Anyone got any pointers?
>>
First, this is a mailing list, not Outlook. Please don't top post.

Second, No. You do not appear to understand the issues.

I am *NOT* installing it as root. This is my manager's approach, and I
agree with it. As it's not a package, in a std. repo, it would not be
updated for bugfixes, and, far more critically, security fixes, when we do
that every month. That's why we want it installed in the user's space.

These are servers, used by many researchers, not someone's home Linux box.
And even at home, I wouldn't install it that way.

And I want him to use the system numpy, not install a newer one, that
would also have the same update issues. Btw, numpy in the std. repos
hasn't been seen a package update since 2015, which is why I'm trying to
install a scikit-learn from last year....

       mark