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 b. Now that you have pip, it is easy to install python modules. Usually when you find a module that you want to use, the installation instructions will have the necessary pip command, such as. Pip install requests pip install beautifulsoup4 pip install simplekml. Sep 18, 2015 What do need to do is install the Python module called “requests”. To this do, please follow these steps, assuming you have Python 2.7: 1. Download the Python request module, requests-2.7.0.tar.gz (md5). Use a 7zip or similar to fully extract the package to request-2.7.0. If you are using Windows recommended downloads location, the extracted package will be in.
Active3 years ago
Once you have a copy of the source, you can embed it in your own Python package, or install it into your site-packages easily: $ cd requests $ pip install. Requests is an elegant and simple HTTP library for Python, built for human beings.
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♦
SteveSteve38022 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).- 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:
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.
Active6 months ago
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
user3654181user365418115122 gold badges22 silver badges1111 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
Install Python Requests Module Windows 9
4,05233 gold badges1515 silver badges3333 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:
- List item
- Right click on 'My computer'
- Click 'Properties'
- Click 'Advanced system settings' in the side panel
- Click 'Environment Variables'
- Click the 'New' below system variables
- find the path variable and edit
- add this variable ;C:Python34 with the semicolon
now you can run this comand
cd C:Python34
python -m pip install requests
Mr HalcoloMr Halcolo
I install it by Anaconda:
and there is no error occured like you. Saitek windows 10 drivers.
accfcxaccfcx