Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Errors trying to run code
#4
Hi!

According to this:

(Nov-03-2019, 03:48 AM)ziggyztz Wrote: The mylibrary starts with these imports if it's relevant:
import py_game
import threading
import enum
import time
import requests
import datetime

and the last lines of your error message:

(Nov-03-2019, 02:40 AM)ziggyztz Wrote:
Error:
import requests ModuleNotFoundError: No module named 'requests'

I would say that either you haven't installed the module 'requests' on your version of python or that you have more than one version of python installed.

To see what version of python you have installed, you can type python -V in your Windows command prompt (not sure if you are using Mac).

To install the module 'requests' in the version of python you are running, type pip install requests in your Windows command prompt.

Another thing that comes to mind is that according to the message from your link, it seems that it could be related to python 3.8 as I think I've read that some people are having trouble trying to run some modules on it.

All the best,

P.S.:

Great! It seems that you worked it out!

All the best,
newbieAuggie2019

"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs
Reply


Messages In This Thread
Errors trying to run code - by ziggyztz - Nov-03-2019, 02:40 AM
RE: Errors trying to run code - by Larz60+ - Nov-03-2019, 03:16 AM
RE: Errors trying to run code - by ziggyztz - Nov-03-2019, 03:48 AM
RE: Errors trying to run code - by newbieAuggie2019 - Nov-03-2019, 04:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Are there errors in the code for my coin toss systems? Matlibplot is too perfect . Coolkat 0 487 Nov-13-2023, 11:54 AM
Last Post: Coolkat
  My code won't say Player wins or computer wins. No errors. its_a_meLuigi64 2 1,752 Dec-01-2021, 04:43 PM
Last Post: its_a_meLuigi64
  Rmarkdown opened by python code - errors Rav013 0 2,198 Apr-27-2021, 03:13 PM
Last Post: Rav013
  [split] Kera Getting errors when following code example Image classification from scratch hobbyist 3 4,773 Apr-13-2021, 01:26 PM
Last Post: amirian
  2 errors in code numbnumb54 2 2,156 Jul-24-2020, 02:28 PM
Last Post: Marbelous
  Code errors rhyjom 0 1,518 Jun-21-2020, 04:50 PM
Last Post: rhyjom
  Errors in code coolcassie 2 2,251 Dec-03-2019, 12:10 AM
Last Post: coolcassie
  errors in code sylvie1987100 3 2,448 Sep-11-2019, 12:54 PM
Last Post: sylvie1987100
  Decorator toy code throws syntax errors kevinxhi 3 3,755 Sep-04-2017, 03:01 AM
Last Post: kevinxhi

Forum Jump:

User Panel Messages

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