Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
Bottom Page

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.
Quote
#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
Quote
#3
It says 'pip' is not recognized as an internal or external command, operable program or batch file.
Quote
#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?
Quote
#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.
Quote
#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
Quote
#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.
metulburr likes this post
Quote
#8
you can do that in 2.7.12
The red X signifying that i chose to not install pip


Attached Files Thumbnail(s)
   
Quote
#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)
Quote
#10
If he doesnt have pip installed he cant import pip. plus he was initially trying to install requests, not determine what is installed
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  3rd Party Modules - Installing martyl 9 115 Jun-15-2018, 01:49 AM
Last Post: martyl
  Installing Tensorflow Scott 14 217 Jun-04-2018, 04:07 AM
Last Post: Scott
  Requests problem ZarKx 3 126 May-22-2018, 12:22 PM
Last Post: ZarKx
  Error when installing module tjnichols 2 119 May-13-2018, 04:51 PM
Last Post: tjnichols
  Can't log in with requests post LilDog 1 72 May-09-2018, 05:28 PM
Last Post: LilDog
  Installing pyperclip module Truman 5 205 Apr-29-2018, 03:29 PM
Last Post: snippsat
  Import Requests Does not Work DiceMann 12 707 Apr-24-2018, 02:45 AM
Last Post: DiceMann
  working with lxml and requests gentoobob 23 450 Apr-19-2018, 06:54 PM
Last Post: gentoobob
  errors while installing packages kavindu 3 278 Apr-02-2018, 02:33 AM
Last Post: giri_ginanjar
  Ubuntu: Error installing watson-developer-cloud Python module gio123 3 299 Mar-15-2018, 09:39 PM
Last Post: gio123

Forum Jump:


Users browsing this thread: 1 Guest(s)