Reputation: 51
I have tried to install Requests like this:
python3 -m install requests
but it's not working.
Upvotes: 0
Views: 3533
Reputation: 1
Yes, if it is in python, it will give a syntax error. Try it right when you open up the cmd.
In this link, I am in python:
But in the command prompt, it works:
Well, as for me, I have it already installed in Spyder.
Upvotes: 0
Reputation: 6041
You are using pip incorrectly. You should run pip
command from the command line, not in Python:
C:\Windows\system32> python3 -m pip install requests
C:\Windows\system32> python3
Python 3.6.1........
>>> import requests
Read pip documentation carefully.
Upvotes: 6