This is my situation:
I tried importing pygame
in both python 3.4.2 and python 3.6.3 using both pip
and pip3
respectively.
In the python 3.4.2 shell:
Traceback (most recent call last) is:
File "", line 1, in
import pygame
ImportError: No module named 'pygame'
In the python 3.6.3 shell:
Traceback (most recent call last):
File "", line 1, in
import pygame
File "C:\Users\aditya dand\AppData\Local\Programs\Python\Python36\lib\site-packages\pygame__init__.py", line 141, in from pygame.base import *
ModuleNotFoundError: No module named 'pygame.base'
Those are the errors that occurred.
I also used pygame-1.9.2a0-hg_5974ff8dae3c%2B.win32-py3.4.msi
.
It's showing the header's file of pygame
, but it's not importing something.
What can I do to solve this?