-1

I run python 2.7 I did as follow but still receiving the following strange feedback, not sure why.

Import pip
pip install pandas

can someone explain to me what's the error mean?

error message I receive trying to install

L. Barak
  • 49
  • 5
  • 3
    You need to run it on a command line, not in Python. – ayhan May 02 '16 at 14:23
  • (as @ayhan said) but even if you did run it from python be careful of case, its `import`, not `Import`. You can run `pip` from python code, see http://stackoverflow.com/questions/12332975/installing-python-module-within-code – cdarke May 02 '16 at 14:33

2 Answers2

2

pip install pandas is not a command that you run from within your Python script. It is run at the command line.


Alternatively, you can do this from within your code:

pip.main(['install', 'pandas'])
Andy
  • 43,170
  • 54
  • 150
  • 214
0

Try running pip from the command line (bash/terminal on linux/osx or cmd.exe in Windows), not from a python script.
pip install pandas

If you're not using virtualenv, you might need administrative privileges.

On Linux/OSX use sudo:
sudo pip install pandas

On Windows run Command Prompt as Administrator: https://technet.microsoft.com/en-us/library/cc947813%28v=ws.10%29.aspx

tachirei
  • 56
  • 2