Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing and using pip, "SyntaxError: invalid syntax" [duplicate]

Tags:

python

pip

I followed these instructions for installing pip on Windows 7. When I try to install the example package with pip install httpie (or any other package), it gives me the following error:

SyntaxError: invalid syntax

It also highlights the word install. And that's it. I am using Python 3.3.1 and used the corresponding installers in the instructions at the link above. Finally, I apologize if you consider this a duplicate, but Stack Overflow will not allow me to post on the answer in the original thread and I am getting an error message that they do not discuss.

like image 347
Michael Avatar asked Sep 11 '13 15:09

Michael


2 Answers

You should type that in the command prompt, not in Python.

like image 81
Daniel Roseman Avatar answered Sep 25 '22 02:09

Daniel Roseman


You're typing those commands in Python. They are not Python commands, they are shell commands. Type them in your shell!

like image 43
kindall Avatar answered Sep 25 '22 02:09

kindall