Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'import requests' problem
#1
I got enough info with my first thread posted here, to commit to doing python tutorials, so far around 100 and still going, but reaching the end.
I chose w3schools for the base of python tutorials, and adding others from other places to fill in the gaps.

My issue is with w3schools tkinter-thread https://www.pythontutorial.net/tkinter/tkinter-thread/ running on Ubuntu 18.04.6 LTS and python executing in PyCharm.

PyCharm spits a 'No module named 'requests' Error, and I've spent a couple days on the net trying to find a example oh how to load and get PyCharm to import 'requests'.

Can anyone point me to an example to correct this issue this or where to go to find help?

Curbie
Reply
#2
Looks like it should be easy. Have you tried the ways mentioned here?

https://www.pythonrequests.com/how-to-in...n-pycharm/

If you are using a virtual environment and install from the terminal, make sure activate your virtual environment before doing pip install. If you don't, it will install requests in you system python.
Reply
#3
Thank you deanhystad,

The procedure you pointed to here: https://www.pythonrequests.com/how-to-in...n-pycharm/ worked to get the request import recognized. My issue is. it could be Ubuntu, or python, or pycharm, or version mix, or just me, after chasing my tail for a couple of days, and I begin to forget which ideas I've tried.

Thanks again.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  problem in import module from other folder akbarza 5 10,404 Sep-01-2023, 07:48 AM
Last Post: Gribouillis
  [WORKED AROUND] Problem installing elitech-datareader, 'cannot import build_py_2to3' NeilUK 4 4,341 Jul-09-2023, 10:01 AM
Last Post: NeilUK
  Import requests/beautifulsoup problem Jokadaro_ 3 3,157 Dec-05-2021, 01:22 PM
Last Post: Jokadaro_
  'urllib3' Module not found when import 'requests' spanz 5 14,566 Jan-06-2021, 05:57 PM
Last Post: snippsat
  Problem with Flask Bcrypt import module marcello86 2 7,527 Aug-31-2020, 08:10 PM
Last Post: marcello86
  submodule import problem deanhystad 3 7,920 Mar-01-2020, 01:52 PM
Last Post: deanhystad
  problem with mapnik in anaconda python 2: from _mapnik import * ImportError: DLL load parsley 0 2,445 Dec-11-2019, 07:50 AM
Last Post: parsley
  Problem in DB requests using if()s nikos 4 3,557 Feb-09-2019, 11:52 PM
Last Post: nikos
  File Import Problem St_Patrick 8 5,854 Aug-04-2018, 02:29 PM
Last Post: St_Patrick
  Requests problem ZarKx 3 4,201 May-22-2018, 12:22 PM
Last Post: ZarKx

Forum Jump:

User Panel Messages

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