Gentoo Archives: gentoo-user

From: tuxic@××××××.de
To: Gentoo <gentoo-user@l.g.o>
Subject: [gentoo-user] Problems with numpy and python 3x
Date: Sun, 15 Dec 2019 06:07:38
Message-Id: 20191215060724.kulkycfezr3ct46b@solfire
1 Hi,
2
3 after the update this morning, "numpy" wasn't found anumore by python.
4
5 Asking python, it gave me:
6 Python 3.7.5 (default, Dec 15 2019, 05:23:14)
7 [GCC 9.2.0] on linux
8 Type "help", "copyright", "credits" or "license" for more information.
9 >>> import numpy
10 Traceback (most recent call last):
11 File "<stdin>", line 1, in <module>
12 ModuleNotFoundError: No module named 'numpy'
13 >>>
14
15 eix numpy gave me:
16
17
18 [U] dev-python/numpy
19 Available versions: 1.14.5^t (~)1.15.4^t (~)1.16.1^t (~)1.16.5^t (~)1.17.4^t {doc lapack test PYTHON_TARGETS="python2_7 python3_5 python3_6 python3_7 python3_8"}
20 Installed versions: 1.16.5^t(06:31:45 AM 12/15/2019)(lapack -doc -test PYTHON_TARGETS="python2_7 python3_6 -python3_5 -python3_7")
21 Homepage: https://www.numpy.org
22 Description: Fast array and numerical python library
23
24
25 emergeing it with
26
27 emerge --selective=n dev-python/numpy
28
29 results in the same output of eix.
30
31 Interestingly a post on stackexchange related to the problem of "numpy
32 not found" states (source: https://stackoverflow.com/questions/7818811/import-error-no-module-named-numpy_)
33
34 "Support for Python 3 was added in NumPy version 1.5.0, so to begin with, you must download/install a newer version of NumPy."
35
36 and links to this address: https://sourceforge.net/projects/numpy/files//NumPy/1.5.0/NOTES.txt/view
37 which states the same.
38
39 A version of numpy >= 1.5 is not offered by portage repo it seems, but
40 python 3.x is.
41
42 pip3 says, everything is fine, numpy is installed:
43
44 pip3 install --user numpy
45 Requirement already satisfied: numpy in /usr/lib64/python3.6/site-packages (1.16.5)
46
47 But this does not fit the installed python version according to the
48 linked sources above.
49
50 How can I solve this problem?
51
52 (I am on "unstable"...)
53
54 Cheers!
55 mcc

Replies

Subject Author
Re: [gentoo-user] Problems with numpy and python 3x tuxic@××××××.de
Re: [gentoo-user] Problems with numpy and python 3x Franz Fellner <alpine.art.de@×××××.com>