It can't have been "just an update" because python-3.7 is your default python, so you have selected it after the update. Alternatively: Your numpy doesn't work for a longer time and you just didn't realize until now.
numpy was built for python-3.6 and not for python3.7. Which is perfectly fine as it is gentoos default - base/make.defaults:PYTHON_TARGETS="python2_7 python3_6". So why did you install python-3.7 and set it as default although your system isn't prepared for it? Am So., 15. Dez. 2019 um 08:07 Uhr schrieb <tu...@posteo.de>: > Hi, > > after the update this morning, "numpy" wasn't found anumore by python. > > Asking python, it gave me: > Python 3.7.5 (default, Dec 15 2019, 05:23:14) > [GCC 9.2.0] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import numpy > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ModuleNotFoundError: No module named 'numpy' > >>> > > eix numpy gave me: > > > [U] dev-python/numpy > 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"} > 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") > Homepage: https://www.numpy.org > Description: Fast array and numerical python library > > > emergeing it with > > emerge --selective=n dev-python/numpy > > results in the same output of eix. > > Interestingly a post on stackexchange related to the problem of "numpy > not found" states (source: > https://stackoverflow.com/questions/7818811/import-error-no-module-named-numpy_ > ) > > "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." > > and links to this address: > https://sourceforge.net/projects/numpy/files//NumPy/1.5.0/NOTES.txt/view > which states the same. > > A version of numpy >= 1.5 is not offered by portage repo it seems, but > python 3.x is. > > pip3 says, everything is fine, numpy is installed: > > pip3 install --user numpy > Requirement already satisfied: numpy in /usr/lib64/python3.6/site-packages > (1.16.5) > > But this does not fit the installed python version according to the > linked sources above. > > How can I solve this problem? > > (I am on "unstable"...) > > Cheers! > mcc > > > >