Return to site

Install Python Requests Module Windows

broken image


Mar 24, 2018  Installing Python Modules One of the great things about using Python is the number of fantastic code libraries that are widely and easily available that can save you a lot of coding. Once these libraries are installed on your computer, you can use. I am trying to install the requests module on Windows 10. I have Python 3.6 except I get this error: Exception: Traceback (most recent call last): File 'C: Stack Overflow.

Active3 years ago

I need to use requests in my code but it says that it's not installed. I get the following error: No module named 'requests'. It's actually installed and works in python 2.7: Requirement already satisfied (use --upgrade to upgrade): requests in /Library/Python/2.7/site-packages. I searched a lot and tried to reinstall it, to download missing libraries, and etc... but nothing helped. How can I make it work on python 3.5 ?

Community
SteveSteve
38022 gold badges55 silver badges2020 bronze badges

2 Answers

Python 2 and 3 (and their packages) can be installed and co-exist independently of one another. I would suggest using pip as the best way to install Python packages (and keep them up-to-date).

  1. Install pip for Python 3 – using one of the following methods:

    • easy_install (may be available as easy_install-3.5),
    • the distribution package manager (if running GNU/Linux) or
    • python -m ensurepip (thanks, Mark Dickinson)
  2. Use pip to install the requests module:

Python
Anthony Geoghegan

Install Python Requests Module Windows 8

Anthony Geoghegan
8,44244 gold badges3737 silver badges4545 bronze badges

You can even place the 'requests' Folder (https://github.com/kennethreitz/requests/tree/master/requests) next to your 'script.py' and import requests from any script within the folder containing the requests folder
> root --> requests ---->init.py ----> [more] --> script.py

script.py can now import requests as always

juliusmhjuliusmh

Not the answer you're looking for? Browse other questions tagged python-3.xpython-requests or ask your own question.

Active1 year, 6 months ago

I have installed python 2.7,added the path in environment variables trying to import requests module in python IDLE.To install requests module i am trying to use python -m pip install requestsbut i am getting error

please help me what can i do

Arpit Solanki
5,95522 gold badges2121 silver badges4646 bronze badges
Sravani ChintaSravani Chinta

Install Python Requests Module On Windows

1 Answer

Install Python Requests Module Windows
Anthony Geoghegan

Install Python Requests Module Windows 8

Anthony Geoghegan
8,44244 gold badges3737 silver badges4545 bronze badges

You can even place the 'requests' Folder (https://github.com/kennethreitz/requests/tree/master/requests) next to your 'script.py' and import requests from any script within the folder containing the requests folder
> root --> requests ---->init.py ----> [more] --> script.py

script.py can now import requests as always

juliusmhjuliusmh

Not the answer you're looking for? Browse other questions tagged python-3.xpython-requests or ask your own question.

Active1 year, 6 months ago

I have installed python 2.7,added the path in environment variables trying to import requests module in python IDLE.To install requests module i am trying to use python -m pip install requestsbut i am getting error

please help me what can i do

Arpit Solanki
5,95522 gold badges2121 silver badges4646 bronze badges
Sravani ChintaSravani Chinta

Install Python Requests Module On Windows

1 Answer

This answer won't tell you why you are getting that error, but suggests a workaround at the end.

Just a wild guess but perhaps the error is caused by not having the correct version of pip?

Python Modules For Windows

ajbazzajbazz

Install Requests Module Python 3.6 Windows

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





broken image