Python Forum
Import Requests Does not Work
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Import Requests Does not Work
#1
Hello all!

On Windows 10, running Python 3.6.5 (v3.6.5:f59c0932b4, after following exactly snippsat installation here:

https://python-forum.io/Thread-Basic-Par...8#pid18498


I am unable to install the "Requests" module.

I can run PIP in windows, and can run python from the cmd line, but i cant

Whats crazy is that i CAN import modules like statistics.
Im looking for any help i can find with this.


C:\Users\MYNAME>pip install requests
Collecting requests
Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests)
Using cached idna-2.6-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests)
Using cached certifi-2018.1.18-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests)
Using cached chardet-3.0.4-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests)
Using cached urllib3-1.22-py2.py3-none-any.whl
Installing collected packages: idna, certifi, chardet, urllib3, requests
Successfully installed certifi-2018.1.18 chardet-3.0.4 idna-2.6 requests-2.18.4 urllib3-1.22

The C prompt never re-appeared after installation.

I had to actually and completley exit out of dos prompt/CMD and re open it.


 import requests
Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'
>>>

(Apr-15-2018, 09:17 PM)DiceMann Wrote: Hello all!

On Windows 10, running Python 3.6.5 (v3.6.5:f59c0932b4, after following exactly snippsat installation here:

https://python-forum.io/Thread-Basic-Par...8#pid18498


I am unable to install the "Requests" module.

I can run PIP in windows, and can run python from the cmd line, but i cant

Whats crazy is that i CAN import modules like statistics.
Im looking for any help i can find with this.


C:\Users\MYNAME>pip install requests
Collecting requests
Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests)
Using cached idna-2.6-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests)
Using cached certifi-2018.1.18-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests)
Using cached chardet-3.0.4-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests)
Using cached urllib3-1.22-py2.py3-none-any.whl
Installing collected packages: idna, certifi, chardet, urllib3, requests
Successfully installed certifi-2018.1.18 chardet-3.0.4 idna-2.6 requests-2.18.4 urllib3-1.22

The C prompt never re-appeared after installation.

I had to actually and completley exit out of dos prompt/CMD and re open it.


 import requests
Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'
>>>

So..i realized i needed this too lxml.
Problem is when i run it..its imply hangs....


C:\Python36\Scripts>pip install lxml
Collecting lxml



Has this always been necessary with the requests module?
Reply


Messages In This Thread
Import Requests Does not Work - by DiceMann - Apr-15-2018, 09:17 PM
RE: Import Requests Does not Work - by snippsat - Apr-15-2018, 10:16 PM
RE: Import Requests Does not Work - by DiceMann - Apr-16-2018, 01:44 AM
RE: Import Requests Does not Work - by snippsat - Apr-16-2018, 11:26 AM
RE: Import Requests Does not Work - by DiceMann - Apr-17-2018, 02:16 AM
RE: Import Requests Does not Work - by snippsat - Apr-17-2018, 03:38 AM
RE: Import Requests Does not Work - by DiceMann - Apr-18-2018, 04:35 AM
RE: Import Requests Does not Work - by DiceMann - Apr-20-2018, 04:09 AM
RE: Import Requests Does not Work - by wavic - Apr-20-2018, 04:53 AM
RE: Import Requests Does not Work - by snippsat - Apr-20-2018, 09:07 AM
RE: Import Requests Does not Work - by ljmetzger - Apr-20-2018, 01:18 PM
RE: Import Requests Does not Work - by DiceMann - Apr-24-2018, 02:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pip install requests doesnt work misodca 8 6,196 Jul-07-2023, 08:04 AM
Last Post: zyple
  getting an import statement to work in my program barryjo 1 1,672 Dec-06-2021, 04:28 PM
Last Post: snippsat
  Import requests/beautifulsoup problem Jokadaro_ 3 2,064 Dec-05-2021, 01:22 PM
Last Post: Jokadaro_
  'urllib3' Module not found when import 'requests' spanz 5 10,317 Jan-06-2021, 05:57 PM
Last Post: snippsat
  Does "import xlrd" work in Thonny? cnutakor 3 3,023 Apr-30-2020, 12:41 AM
Last Post: Larz60+
  import scalalib package doesn't work manu_brighter 2 2,911 Apr-17-2020, 06:36 PM
Last Post: snippsat
  [split] import PIL dont work vedansh 1 2,097 Mar-29-2020, 10:00 AM
Last Post: Larz60+
  import PIL dont work rodink 14 12,942 Feb-22-2020, 08:48 PM
Last Post: snippsat
  import requests gives me error blckpstv 1 7,334 Jan-22-2017, 10:41 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

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