Title says it all. In Sublime Text, the code (the Alien Invasion one) from Python Crash Course by Eric Matthes works, the displays show up, and you can interact and play with it. On the other hand, VS Code (which has the Anaconda Extension), a black window shows up for a second, then immediately closes afterwards. I am required to use VS Code as a main code editor and cannot switch to Sublime Text. Here's the logs:
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "c:/Users/tuque.LAPTOP-INJ088N0/Documents/Dedge Python Scripts/scoring/alien_invasion.py", line 257, in <module>
File "c:/Users/tuque.LAPTOP-INJ088N0/Documents/Dedge Python Scripts/scoring/alien_invasion.py", line 31, in __init__
self.sb = Scoreboard(self)
File "c:\Users\tuque.LAPTOP-INJ088N0\Documents\Dedge Python Scripts\scoring\scoreboard.py", line 25, in __init__
self.prep_ships()
File "c:\Users\tuque.LAPTOP-INJ088N0\Documents\Dedge Python Scripts\scoring\scoreboard.py", line 66, in prep_ships
ship = Ship(self.ai_game)
File "c:\Users\tuque.LAPTOP-INJ088N0\Documents\Dedge Python Scripts\scoring\ship.py", line 16, in __init__
self.image = pygame.image.load('images/ship.bmp')
pygame.error: Couldn't open images/ship.bmp
edit: Also tried projects made by other users with pygame, same results. edit2: VS Code Python Version is 3.7.2 'conda' while Sublime Text is 3.8