Ask Your Question
0

how to add pip or numpy to python 2.7?

asked 2021-03-29 22:11:18 -0500

for running a script in python 2.7, I need to import numpy, I've got the message "No module named numpy", then to install it, I need to have pip while I can't install pip for python 2.7. does any body have been trying to install pip for python 2.7 before?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2021-03-30 08:16:00 -0500

likethevegetable gravatar image

Pip should be installed by default. Go to the command line, type Python, and it should give you some message saying either Python 2.7.x, some other version, or that Python is not in path.

If 2.7 is found, type this in command line:

python -m pip install numpy

Otherwise

"C:\yourpathto\python.exe" -m pip install numpy

Where yourpathto is changed according to your setup.

edit flag offensive delete link more
0

answered 2021-03-30 10:46:20 -0500

jconto gravatar image

In win10, open a CMD window (a DOS window) and enter:

c:\..>pip install numpy
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2021-03-29 22:11:18 -0500

Seen: 1,722 times

Last updated: Mar 30 '21