Requests module not installing - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Requests module not installing (/thread-815.html) Pages:
1
2
|
Requests module not installing - Rayquaza51120 - Nov-07-2016 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: I'd appreciate any help that I can get on this matter.Thank you. RE: Requests module not installing - snippsat - Nov-07-2016 (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.12Comes 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 RE: Requests module not installing - Rayquaza51120 - Nov-07-2016 It says 'pip' is not recognized as an internal or external command, operable program or batch file. RE: Requests module not installing - snippsat - Nov-07-2016 (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\scriptsDo know how to use command line(cmd) in Windows? RE: Requests module not installing - Rayquaza51120 - Nov-07-2016 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. RE: Requests module not installing - metulburr - Nov-07-2016 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 RE: Requests module not installing - snippsat - Nov-07-2016 (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. RE: Requests module not installing - metulburr - Nov-07-2016 you can do that in 2.7.12 The red X signifying that i chose to not install pip RE: Requests module not installing - Blue Dog - Nov-07-2016 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) RE: Requests module not installing - metulburr - Nov-07-2016 If he doesnt have pip installed he cant import pip. plus he was initially trying to install requests, not determine what is installed |