Re: Semi-OT: install python package in userspace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Valeri Galtsev wrote:
<snip>
>>> On Fri, 6 Apr 2018 17:25 , <m.roth@xxxxxxxxx> 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?
<snip>
> Mark, python is a "sneaky snake" ;-) and some modules may require
> particular version of dependencies, therefore they may ignore your
> system wide numpy (even though it may just may be compatible with them),
> and may demand latest version of numpy. Which will explain pip (or
> other) attempting to pull dependencies which allegedly are available
> system wide already.
>
> Just speculating, your own research on your particular issue may give
> your better answer.
<snip>
Well, my manager came back, and he's got me using virtenv. Having read
about it, I like it.  Oh, and the issue with the system numpy in
site-packages was that, for some reason, it was *not* world-readable.
Fixed that.

So, I'm working on trying to install scipy in the virtenv... and for
unknown reasons, it simply can't find the system libs. I did this before
the last attempt to
export LAPACK=/usr/lib64/liblapack.so.3
export BLAS=/usr/lib64/libblas.so.3
and just added export LD_LIBRARY_PATH=/usr/lib64
Still can't find them.

Clues on this one?

        mark


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux