PYTHON PIP Error
>>> pip install request
File "<stdin>", line 1
pip install request
^
SyntaxError: invalid syntax
First of all you need to ensure if pip is okay. to do it. type the command below. open windows command prompt, click start and typ CMD.
python -m ensurepip --default-pip
if ok. this will return
python -m pip install SomePackage
so to get the requests package (you need this so that you can use python to deal with web APIs web-services)
python -m pip install requests
No comments:
Post a Comment