Adnan Zahid
Adnan Zahid

Reputation: 13

python:installing Numpy

I tried the command 'python -m pip install numpy' several times to install numpy on the command prompt but nothing happens. Can someeone tell what the problem is?

enter image description here

Upvotes: 0

Views: 87

Answers (3)

Chetan Hireholi
Chetan Hireholi

Reputation: 79

Try pip install numpy or pip3 install numpy

Or

Try a fresh installation of Python from the scratch. Download the .exe installer from their official website, and do 'check mark' the 'add environment variable' at the beginning.

Link: https://www.python.org/ftp/python/3.8.3/python-3.8.3-amd64.exe

Upvotes: 1

CStudent
CStudent

Reputation: 158

On your CMD type python. It will enter python and you'll see this sign (>>>), type 'import numpy'. If it didnt install it you'll get:

ModuleNotFoundError: No module named 'numpy'

Then you'll need to type 'pip install numpy'.

If it did install it you'll see on a new line (>>>).

Another way to check if you installed it is by typing 'pip list' and see if it is there.

Upvotes: 0

yudhiesh
yudhiesh

Reputation: 6829

Try this and see if it works

pip3 install numpy

Upvotes: 0

Related Questions