Ask Your Question
0

how to add pip or numpy to python 2.7?

asked Mar 30 '1

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?

2 answers

Sort by » oldest newest most voted
1

answered Mar 30 '1

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.

link
0

answered Mar 30 '1

jconto gravatar image

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

c:\..>pip install numpy
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Mar 30 '1

Seen: 1,983 times

Last updated: Mar 30 '21