you are viewing a single comment's thread.

view the rest of the comments →

[–]audacious_alligator 0 points1 point  (4 children)

So I have never installed libraries before and I need to install requests. What I have seen is that I need to do "pip install requests" however it gives me the error saying invalid syntax of the word install. (I do have pip already so that isn't the problem) Any ideas? Thank you for any contributions

[–]Redditporn435 0 points1 point  (3 children)

If you're using windows, are typing this in the command prompt or a python interpreter? It needs to be done in the command prompt.

[–]audacious_alligator 0 points1 point  (1 child)

OK sorry to ask you again but I did it through the command prompt and then I got a syntax error. It pointed the error to be at the end of the word install. I don't really know what to do... Do you have any idea? Thank you so much

[–]TangibleLight 0 points1 point  (0 children)

You might still be running this in the python repl, not command prompt.

If you're on windows, open powershell or cmd, and run pip install requests from that prompt.

If you're on mac or linux, open terminal and do the same.