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

Fri Apr 6 18:53:22 UTC 2018
Valeri Galtsev <galtsev at kicp.uchicago.edu>


On 04/06/18 13:51, Ulf Volmer wrote:
> On 06.04.2018 18: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
> 
> can't reproduce your issue:
> 
> [ulf at centos7-x1 ~]$ pip install --user scikit-learn
> Collecting scikit-learn
>    Downloading scikit_learn-0.19.1-cp27-cp27mu-manylinux1_x86_64.whl (12.2MB)
>      100% |████████████████████████████████| 12.2MB 101kB/s
> Installing collected packages: scikit-learn
> Successfully installed scikit-learn-0.19.1
> You are using pip version 8.1.2, however version 9.0.3 is available.
> You should consider upgrading via the 'pip install --upgrade pip' command.
> 
> But on my testbox, i'm not sucessful to use the system numpy and scipy
> packages. i had to install them using pip.

Python is a  "sneaky snake" ;-)

Valeri

> 
> best regards
> Ulf
> _______________________________________________
> 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
++++++++++++++++++++++++++++++++++++++++