Forum Posts

Teacher WONG YUN TONG 黃潤棠
Jul 25, 2019
In R1 - Raspberry Pi Python
There was another error message appeared. I tried to edit the path of ship.bmp. The same error message appeared. Was it related to the same issue? Did I make the same mistake that I did not import pygame in the correct location?
Run alien_invasion.py in Atom content media
0
1
6
Teacher WONG YUN TONG 黃潤棠
Jul 25, 2019
In R1 - Raspberry Pi Python
Dear Mr Ng, I have stored all the file in a USB flash drive. Then, I try to insert the ship.bmp into the alien_invasion.py programme. After typing the line "ship = Ship(screen)", I intended to run the programme in the IDLE environment. However, the error message appeared like this ============ RESTART: E:\20190718IoT\Lesson2\L2\alien_invasion.py ============ Traceback (most recent call last): File "E:\20190718IoT\Lesson2\L2\alien_invasion.py", line 3, in <module> import pygame ModuleNotFoundError: No module named 'pygame' Do I need to install the pygame again? Did I install the pygame in the correct location? I have used the 'pip list' in cmd window. I could found the pygame. What should I do to solve the above mentioned problem? Thanks for your kind attention.
import pygame content media
0
4
17
Teacher WONG YUN TONG 黃潤棠
More actions