Akshay Arora
Akshay Arora

Reputation: 51

Unable to install package from pip

I have tried to install Requests like this:

python3 -m install requests

but it's not working.

Have a link at this link

Upvotes: 0

Views: 3533

Answers (2)

Helper
Helper

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

errata
errata

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

Related Questions