0

I have tried to install Requests like this:

python3 -m install requests

but it's not working.

Have a link at this link

1
  • Try it : python3 -m pip install requests
    – Arpit
    Commented May 27, 2017 at 12:08

2 Answers 2

6

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.

3
  • Yes, but you invoked pip as a Python command, not in your shell... Run pip before you run python.
    – errata
    Commented May 27, 2017 at 12:08
  • When i did that i got an error that fatal error in launcher: Unable to create process using '"" Commented May 27, 2017 at 12:10
  • @AkshayArora You are welcome! If you think that this solved your problem, accept the answer and enjoy coding with Python ;)
    – errata
    Commented May 27, 2017 at 12:21
0

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.