I am learning a Python Pygame tile-based game via a YouTube tutorial series https://www.youtube.com/watch?v=QIXyj3WeyZM
My code is identical to the code in the video. (I have checked many times for mistakes.)
When I run the program, I get this error:
File "C:\Users\PC\Desktop\letní hra\TILE TUTORIAL\main.py", line 6, in <module>
from sprites import *
File "C:\Users\PC\Desktop\letní hra\TILE TUTORIAL\sprites.py", line 3, in <module>
from tilemap import collide_hit_rect
File "C:\Users\PC\Desktop\letní hra\TILE TUTORIAL\tilemap.py", line 1, in <module>
import pytmx
ModuleNotFoundError: No module named 'pytmx'
It thinks I'm missing pytmx, but I installed it with Terminal pip install pytmx
like in the video.
I was getting that error, so I uninstalled it and then reinstalled it again but there is the same error.
I'm running my code with Python 3.8 and the install path for pytmx is C:\Users\PC\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pytmx
I uninstalled
pytmx
,pygame
, andpython
and reinstalled it all again. Now it recognizespytmx
but I'm getting this hugeTMX compression type: zstd is not supported
error.