Sep-03-2019, 05:18 PM
in that case
run that interpreter in the terminal first to verify pygame is working. Not in VS Code or any other IDE.
pip3 install pygame
should install it to python3.7run that interpreter in the terminal first to verify pygame is working. Not in VS Code or any other IDE.
metulburr@ubuntu:~$ python3.7 Python 3.7.3 (default, Mar 26 2019, 01:59:45) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import pygame pygame 1.9.6 Hello from the pygame community. https://www.pygame.org/contribute.html >>>then try it in VS Code. Make sure that is invoking the python3.7 version
Recommended Tutorials: