Python Forum
Requests module not installing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Requests module not installing
#1
Hello,
I am having trouble with installing the requests module. I am using python 2.17.12 and it keeps coming up with this error: could not find a version that satisfies the requirement install (from versions: ) no matching distribution found for install
I have tried executing this command, python -m pip install --users requests , in different directories and nothing is working. Also another error I have encountered is:
Error:
Traceback (most recent call last):   File "C:\Python27\lib\runpy.py", line 163, in _run_module_as_main     mod_name, _Error)   File "C:\Python27\lib\runpy.py", line 111, in _get_module_details     __import__(mod_name)  # Do not catch exceptions initializing package   File "C:\Python27\lib\site-packages\pip\__init__.py", line 21, in <module>     from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning ImportError: No module named requests.packages.urllib3.exceptions
I'd appreciate any help that I can get on this matter.
Thank you.
Reply
#2
(Nov-07-2016, 06:45 PM)Rayquaza51120 Wrote: I have tried executing this command, python -m pip install --users requests , in different directories and nothing is working.
Why are you doing this?
Installation doc clear pip install requests.
Quote:I am using python 2.17.12
Comes with pip pre -installed in Scripts folder.
It's okay first to upgrade pip then install Requests.
From cmd cd into Scripts folder.
Eg:
C:\>cd python27\scripts
C:\Python27\Scripts>pip install --upgrade pip
C:\Python27\Scripts>pip install requests
Reply
#3
It says 'pip' is not recognized as an internal or external command, operable program or batch file.
Reply
#4
(Nov-07-2016, 07:21 PM)Rayquaza51120 Wrote: It says 'pip' is not recognized as an internal or external command, operable program or batch file.
You have to navigate(cd) into Scripts folder from cmd.
C:\>cd python27\scripts
Do know how to use command line(cmd) in Windows?
Reply
#5
Yes. That is what I am currently using. I navigated to the Scripts folder using the cd command. Then I typed in pip install --upgrade pip , and that is when I got the error.
Reply
#6
when you ran the python installer did you uncheck install pip options?
What is the directory listing of your python scripts?
Such as 
C:\Python27\Scripts
Recommended Tutorials:
Reply
#7
(Nov-07-2016, 10:42 PM)metulburr Wrote: when you ran the python installer did you uncheck install pip options?
I think that option is only in Python 3.5-->.
With 2.7.12 pip should be installed bye default.

Check that you are in Scripts folder one more time.
You can in File Explorer go and look in Scripts folder there should be a pip.exe file there.
You can also use "dir" from command line to list files in a folder.
Reply
#8
you can do that in 2.7.12
The red X signifying that i chose to not install pip

Attached Files

Thumbnail(s)
   
Recommended Tutorials:
Reply
#9
Just run this code and it will tell what you have install

import pip
installed_packages = pip.get_installed_distributions()
installed_packages_list = sorted(["%s==%s" % (i.key, i.version)
     for i in installed_packages])
print(installed_packages_list)
Reply
#10
If he doesnt have pip installed he cant import pip. plus he was initially trying to install requests, not determine what is installed
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ERROR WHILE INSTALLING PLAYSOUND MODULE satwants33 2 1,036 Mar-23-2024, 12:50 PM
Last Post: Ritik2508
  ModuleNotFoundError: No module named 'requests' Serg 18 2,165 Oct-29-2023, 11:33 PM
Last Post: Serg
  Installing time module Led_Zeppelin 2 11,632 Aug-31-2021, 02:16 PM
Last Post: Led_Zeppelin
  Help with requests module 0xB9 3 2,742 Mar-14-2021, 06:49 AM
Last Post: buran
  Although this is a talib related Q it's mostly related to python module installing.. Evalias123 4 5,584 Jan-10-2021, 11:39 PM
Last Post: Evalias123
  'urllib3' Module not found when import 'requests' spanz 5 9,959 Jan-06-2021, 05:57 PM
Last Post: snippsat
  ModuleNotFoundError: No module named 'requests' Martin 2 2,379 Oct-04-2020, 03:35 PM
Last Post: Martin
  Module not Installing Evil_Patrick 9 4,469 May-27-2020, 03:45 PM
Last Post: Evil_Patrick
  Error after installing Python3.8.2: "No module named 'apt_pkg'" Chromie 3 3,823 Mar-09-2020, 08:20 PM
Last Post: micseydel
  Please help: problem installing/importing langdetect module in Jupyter Notebook ledgreve 3 7,187 Dec-30-2019, 08:17 AM
Last Post: LeanbridgeTech

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020