Valeri Galtsev
2018-Apr-06 16:50 UTC
[CentOS] Semi-OT: install python package in userspace
On Fri, April 6, 2018 11:42 am, Richard Demeny wrote:> Just sudo itThis is exactly why I have big reservation in giving users sudo permissions. If they need sudo on UNIX or Linux for small thing like this, then they have no idea what they are doing and can easily screw the system up. Not to mention regular user should not hahe these permissions on multi-user system. If they know enough to not screw system up, they do not need almighty permissions and are able to install what they need into userspace. The last is the goal of the OP. Valeri> > 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? >> >> mark >> >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> https://lists.centos.org/mailman/listinfo/centos >> > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++
On Fri, 2018-04-06 at 11:50 -0500, Valeri Galtsev wrote:> On Fri, April 6, 2018 11:42 am, Richard Demeny wrote: > > Just sudo it > > This is exactly why I have big reservation in giving users sudo > permissions. If they need sudo on UNIX or Linux for small thing like this, > then they have no idea what they are doing and can easily screw the system > up. Not to mention regular user should not hahe these permissions on > multi-user system. If they know enough to not screw system up, they do not > need almighty permissions and are able to install what they need into > userspace. The last is the goal of the OP. >+100 Nobody has sudo permissions on my systems. The most common report of a sudo attempt on my CentOS systems is 'sudo apt-get update', although I have had 'sudo passwd root' (they got a bollocking). P.
> Am 07.04.2018 um 01:41 schrieb Pete Biggs <pete at biggs.org.uk>: > > On Fri, 2018-04-06 at 11:50 -0500, Valeri Galtsev wrote: >> On Fri, April 6, 2018 11:42 am, Richard Demeny wrote: >>> Just sudo it >> >> This is exactly why I have big reservation in giving users sudo >> permissions. If they need sudo on UNIX or Linux for small thing like this, >> then they have no idea what they are doing and can easily screw the system >> up. Not to mention regular user should not hahe these permissions on >> multi-user system. If they know enough to not screw system up, they do not >> need almighty permissions and are able to install what they need into >> userspace. The last is the goal of the OP. >> > +100 > > Nobody has sudo permissions on my systems. The most common report of a > sudo attempt on my CentOS systems is 'sudo apt-get update', although I > have had 'sudo passwd root' (they got a bollocking).Does CentOS changed the package management? :-) -- LF