Install Python Requests Module Windows

Active6 months ago

Installing Python Modules ¶. As a popular open source development project, Python has an active supporting community of contributors and users that also make their software available for other Python developers to use under open source license terms. This allows Python users to share and collaborate effectively.

What command should I use in command prompt to install requests module in python 3.4 version ???

pip install requests

is not useful to install requests module in python 3.4 version. Because while running the script below error is coming

ImportError : no module named 'requests'

user3654181
user3654181user3654181
1512 gold badges2 silver badges11 bronze badges

5 Answers

python -m pip install requests or py -m pip install requests

Thirumalreddy_BandiThirumalreddy_Bandi

On Windows, I found navigating to my Python folder via CMD worked

cd C:Python36

and then running the commandline:

python -m pip install requests

Regular Joe
4,0523 gold badges15 silver badges33 bronze badges
JaeJae
Bert BlockxBert Blockx

If you hace problems with the python command only need add the route C:/python34 or the route went you have python installed:

  1. List item
  2. Right click on 'My computer'
  3. Click 'Properties'
  4. Click 'Advanced system settings' in the side panel
  5. Click 'Environment Variables'
  6. Click the 'New' below system variables
  7. find the path variable and edit
  8. add this variable ;C:Python34 with the semicolon

now you can run this comand

Install Python Requests Module Windows 10

cd C:Python34

python -m pip install requests

Mr HalcoloMr Halcolo

I install it by Anaconda:

and there is no error occured like you.

accfcxaccfcx

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

Active5 months ago

I am facing issues while installing request module (python 2.7) on windows.

Tried the below steps as per documentation:

1

pip install requests

error

'pip' is not recognized as an internal or external command,operable program or batch file.

2

easy_install requests

error

'easy_install' is not recognized as an internal or external command,operable program or batch file.

3

setup.py

error

Can anyone please advise how to install the module on windows , without downloading any new stuff.

misguided
misguided

Python Requests Post

misguided
1,72315 gold badges41 silver badges79 bronze badges

4 Answers

There are four options here:

  1. Get virtualenv set up. Each virtual environment you create will automatically have pip.

  2. Learn how to install Python packages manually—in most cases it's as simple as download, unzip, python setup.py install, but not always.

  3. Use Christoph Gohlke's binary installers.

abarnertabarnert
270k23 gold badges404 silver badges485 bronze badges

If you want to install requests directly you can use the '-m' (module) option available to python.

python.exe -m pip install requests

You can do this directly in PowerShell, though you may need to use the full python path (eg. C:Python27python.exe) instead of just python.exe.

As mentioned in the comments, if you have added Python to your path you can simply do:

python -m pip install requests

rprezrprez
Python requests example

On windows 10 run cmd.exe with admin rightsthen type :

1) cd Python27scripts

2) pip install requests

It should work. My case was with python 2.7

Andrew NosAndrew Nos
  1. Download the source code(zip or rar package).
  2. Run the setup.py inside.
Bhargav Rao
32.9k21 gold badges97 silver badges116 bronze badges
ShireShire

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