Sublime Forum

Sublime Text4 (Build 4126)

#1

Hi Sublime Support,

Regarding: Pygame 2.1.3.dev6(SDL 2.0.20, Python 3.9.12)

I have exhausted after trying so many attempts from Google and various other forums regarding installing pygame 2.1.3.dev6 or even older pygame version 1.9.1 in sublime text4. Under Sublime preferences menu Package Control->Install package->pygame 2.1.3.dev6 but it does not do anything. Even package control was once reinstalled. The Anaconda Spyder 5…3.3 works fine with pygame 2.1.3.dev6 (SDL 2.0.20, Python 3.9.12) but even in Spyder the Pygame windows never opens. That is yet another problem. But when you check through the python terminal it indeed opens up pygame window. The clip is attached for your review. Thanks for your response in advance. With warm regards, Vas Rao

0 Likes

#2

There is no such package in Package Control; the only package that has pygame in the name is Pygame Completions.

Are you perhaps running afoul of thinking that you can use Package Control in Sublime to install arbitrary Python libraries?

0 Likes

#3

Sublime Text ships with Python for its plugins, not for running your code. Since you’re not writing a plugin (presumably) it doesn’t make sense to use package control.

It looks like you’ve already got pygame working using you system’s python installation. If you’re using build systems (cmd+b) then it should be running that same python and work with pygame.

0 Likes