0

Had a friend write some script for me. After about an hour, he declared himself one working on it and sent it to me to complete. So I downloaded Python27 and have been tying to get my head in the game.

My friend used some extra modules in his program and I need to get those up and running before I can see the code running.I've tried following several instructionals with no success.

So I was hoping for some help. My Python directory is where it should be in C:\Python27. I've been trying to use the Python )command line) in order to input the code as given and i keep getting back the same result.

"File " line 1 $pip install requests

SyntaxError: invalid syntax

I am completely lost and starting to get a headache. Please help!

user3689303
  • 79
  • 1
  • 2
  • 7
  • `pip` is a command that you run on your operating system command line (e.g., the "DOS prompt"), not from inside Python. – BrenBarn May 16 '15 at 01:29

2 Answers2

0

'pip' is a command line program, not a python construct.

Try How do I install pip on Windows? first to get the pip command on Windows.

Community
  • 1
  • 1
hayalci
  • 3,919
  • 1
  • 24
  • 30
0

You should not use python command line interpreter to install the package.

First, follow this question to install pip on Windows. Then you can directly put the pip install command in your cmd.exe and execute it.

skyline75489
  • 14,089
  • 7
  • 43
  • 59