pythonpython-3.xnumpypython-importpython-install

Cant import numpy or install numpy


I am using Python 3.8.0

I am trying to import Numpy in Python Shell but got this error: " ModuleNotFoundError: No module named 'numpy' "

So I tried installing numpy in cmd by typing "pip install numpy" but I got this error: "TypeError: 'module' object is not callable"

Then I tried typing also in cmd "python -m pip install --user numpy" But I got this long error "ERROR: Command errored out with exit status 1 ...."

Is there a way I can get numpy running


Solution

  • To install NumPy from Pip you would need a C / C++ compiler and make sure that Python finds it. Alternatively, a much easier approach is to get a Python installation with pre-compiled NumPy. Popular such choices are:

    more are listed in the Python wiki.

    None of them offers Python 3.8 yet, as far as I know.