Richard Grainger
2018-Apr-10 08:51 UTC
[CentOS] Semi-OT: install python package in userspace
Just had a look at scikit-learn. An issue you have with the current version of this package is that is depends on NumPy (>= 1.8.2). The version of NumPy in CentOS 7 base is 1.7.1. You may need to look at building a Python virtual environment. You can google that ;) On Tue, Apr 10, 2018 at 9:43 AM, Richard Grainger <grainger at gmail.com> wrote:> I created the epypel (Extra Extra Python Packages for Enterprise > Linux) yum repo for exactly this reason: > https://harbottle.gitlab.io/epypel/ > > There are a bunch of additional Python 2 and Python 3 packages there > and if you want any added, please put in a request here: > https://gitlab.com/harbottle/epypel/issues/new > > The repo does not upgrade any packages in base or EPEL, so should be > safe to use on most CentOS 7 systems. > > On Fri, Apr 6, 2018 at 5:25 PM, <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
Richard Grainger
2018-Apr-10 08:54 UTC
[CentOS] Semi-OT: install python package in userspace
If you can use python3 rather than python2, it looks like the dependencies in the standard repos are new enough. Do you want me to have a go at packaging scikit-learn for python3 and adding it to the repo? On Tue, Apr 10, 2018 at 9:51 AM, Richard Grainger <grainger at gmail.com> wrote:> Just had a look at scikit-learn. An issue you have with the current > version of this package is that is depends on NumPy (>= 1.8.2). The > version of NumPy in CentOS 7 base is 1.7.1. You may need to look at > building a Python virtual environment. You can google that ;) > > On Tue, Apr 10, 2018 at 9:43 AM, Richard Grainger <grainger at gmail.com> wrote: >> I created the epypel (Extra Extra Python Packages for Enterprise >> Linux) yum repo for exactly this reason: >> https://harbottle.gitlab.io/epypel/ >> >> There are a bunch of additional Python 2 and Python 3 packages there >> and if you want any added, please put in a request here: >> https://gitlab.com/harbottle/epypel/issues/new >> >> The repo does not upgrade any packages in base or EPEL, so should be >> safe to use on most CentOS 7 systems. >> >> On Fri, Apr 6, 2018 at 5:25 PM, <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
On 2018-04-10, Richard Grainger <grainger at gmail.com> wrote:> If you can use python3 rather than python2, it looks like the > dependencies in the standard repos are new enough.SCL might be an option for providing a more recent python. I'm not sure if scikit is in SCL too, but I'm pretty sure numpy is, and scikit can be installed into a smaller virtualenv. --keith -- kkeller at wombat.san-francisco.ca.us