python 2.7 - Using pygame via Sublime Text on mac 10.8 -


i'm using python 2.7 32 bit , have few questions pygame on mac.

where files go when install it? i'm not given choice file path when install it.

when import pygame in idle works fine (except it's bit slow load sometimes), when import pygame , run python using sublime text (what called, key board short-cut command-b build), can not find pygame. i'm assuming have find library , move different place can't find it.

when run file imports pygame in terminal works out fine too. maybe there's better text editor use?

i'm new programming , i'm realizing idea more acquainted how mac works/ organized. resources this?

just go tools->build system->new build system , make sure json file pops looks this:

{     "shell_cmd": "python2.7-32" } 

save "python2_32.sublime-build" or lets know is, can go tools->build system , select new build directive. when command-b, code should run fine.

this lets sublime text know want run script using 32 bit version of python (which supports pygame). it's shebang sublime.

good luck!


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -