-1

I tried to install the requests module by using pip install requests, but I got the SyntaxError: invalid syntax all the time.

I'm using Python 3 for Windows.

I've tried on other syntax like py -m pip install requests or apt-get install python3-requests but the problem has persisted.

File "<ipython-input-163-38059570e01a>", line 2
    pip3 install requests
    ^
SyntaxError: invalid syntax
Axiumin_
  • 2,107
  • 2
  • 15
  • 24

1 Answers1

0
  1. Launch windows command line as administrator
  2. type: pip3 install requests
  3. press 'Enter'
  4. Vote this post as the answer!
brazosFX
  • 342
  • 1
  • 11