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.
- Install Python Requests Module Windows 8
- Install Python Requests Module On Windows
- Python Modules For Windows
- Install Requests Module Python 3.6 Windows
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 ?
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).
Install
pip
for Python 3 – using one of the following methods:easy_install
(may be available aseasy_install-3.5
),- the distribution package manager (if running GNU/Linux) or
python -m ensurepip
(thanks, Mark Dickinson)
Use
pip
to install therequests
module:
Install Python Requests Module Windows 8
Anthony GeogheganYou 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
Not the answer you're looking for? Browse other questions tagged python-3.xpython-requests or ask your own question.
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 requests
but i am getting error
please help me what can i do
Arpit SolankiInstall Python Requests Module On Windows
1 Answer
Install Python Requests Module Windows 8
Anthony GeogheganYou 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
Not the answer you're looking for? Browse other questions tagged python-3.xpython-requests or ask your own question.
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 requests
but i am getting error
please help me what can i do
Arpit SolankiInstall 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?