Nov-03-2019, 02:40 AM
I'm very new to python and received some help to create the code, but it isn't super complicated. I am receiving the following errors when trying to run the code.
Error:File "C:\Users\Me\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\Me\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Me\Documents\GameProgramFolder\py_game\__main__.py", line 85, in <module>
main()
File "C:\Users\Me\Documents\GameProgramFolder\py_game\__main__.py", line 64, in main
module = __import__(os.path.splitext(filename)[0])
File "C:\Users\Me\Documents\GameProgramFolder\py_game\py34.py", line 35, in exec_module
exec(code, module.__dict__)
File "C:\Users\Me\Documents\GameProgramFolder\Scripts\fight.py", line 3, in <module>
import mylibrary
File "C:\Users\Me\Documents\GameProgramFolder\py_game\py34.py", line 35, in exec_module
exec(code, module.__dict__)
File "C:\Users\Me\Documents\GameProgramFolder\py_game\mylibrary.py", line 5, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
I tried searching for a solution. I added the path environment, uninstalled python and reinstalled, and tried this solution: https://bugs.python.org/msg353736. I don't know enough about what these errors mean to search for a better solution.