python - Installing PyGame, difference between Python2.7 and 3.4? -


i work pygame module and, naturally, went installing it. since default version of python 2.7, downloaded (much earlier) python 3.4 , have been using forever now. when installing pygame, enter following commands terminal: python3.4 -m pip install hg+http://bitbucket.org/pygame/pygame

as might see, using pip , mercurial aid here.

when trying install pygame commands above, installation seems begin returns following errors:

warning, no "setup" file exists, running "config.py" using darwin configuration...  /bin/sh: smpeg-config: command not found /bin/sh: smpeg-config: command not found /bin/sh: smpeg-config: command not found /bin/sh: /usr/x11r6/bin/freetype-config: no such file or directory /bin/sh: /usr/x11r6/bin/freetype-config: no such file or directory /bin/sh: /usr/x11r6/bin/freetype-config: no such file or directory warning: "smpeg-config" failed! warning: "/usr/x11r6/bin/freetype-config" failed! hunting dependencies... sdl     : found 1.2.15 framework sdl not found font    : found framework sdl_ttf not found image   : found framework sdl_image not found mixer   : found framework sdl_mixer not found smpeg   : not found framework smpeg not found framework coremidi found framework quicktime found png     : found jpeg    : found portmidi: found freetype: not found avformat: not found swscale : not found  if compiler errors during install, doublecheck compiler flags in "setup" file.   continuing "setup.py" skipping module _numericsurfarray python 3.4.2 (v3.4.2:ab2c023a9432, oct  5 2014, 20:42:22) [gcc 4.2.1 (apple inc. build 5666) (dot 3)] build. skipping module _numericsndarray python 3.4.2 (v3.4.2:ab2c023a9432, oct  5 2014, 20:42:22) [gcc 4.2.1 (apple inc. build 5666) (dot 3)] build.  no previously-included directories found matching '*/cvs' no previously-included directories found matching '*/*/cvs' 

i have installed dependencies through terminal, can installed python 2.7 , python3.4 doesn't recognize them? (i don't know if valid suggestion, type of stuff isn't area of expertise)

i went python3.4 (interactive mode) , importing pygame worked (but imagine won't able use of module's functions).

however, when run same command on terminal default python (2.7), installs successfully:

    sudo pip install hg+http://bitbucket.org/pygame/pygame password: collecting hg+http://bitbucket.org/pygame/pygame   cloning hg http://bitbucket.org/pygame/pygame /tmp/pip-q1scmd-build installing collected packages: pygame   running setup.py install pygame installed pygame-1.9.2a0 

can suggest reason difference? suppose can work python2.7 when making games, still tedious have switch between 2 versions of same language.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -