I'm having trouble installing numpy on Ubuntu 18.04 for Python 3.7... here's what I tried:
(venv) root@servername:/path$ pip3.7 install numpy --no-cache-dir
Collecting numpy
Downloading numpy-1.19.5-cp37-cp37m-manylinux2010_x86_64.whl (14.8 MB)
|████████████████████████████████| 14.8 MB 8.6 MB/s
Installing collected packages: numpy
Successfully installed numpy-1.19.5
I get this ImportError:
Original error was: No module named 'numpy.core._multiarray_umath'
... but I've been focusing on this as the probable cause, from that same error message:
* The Python version is: Python3.6 from "/path/venv/bin/python"
... that says Python 3.6, but I'm trying to use Python3.7, and that python is on 3.7:
(venv) root@servername:/path$ /path/venv/bin/python --version
Python 3.7.9
I saw in another answer that upgrading can help, so I tried this - it looks like I'm already on the latest:
(venv) root@servername:/path$ pip install numpy --upgrade
Requirement already satisfied: numpy in ./venv/lib/python3.7/site-packages (1.19.5)
How can I get this working?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…