NameError

Thomas Nyberg tomuxiong at gmx.com
Wed Nov 23 23:04:06 EST 2016


On 11/23/2016 10:02 PM, Cai Gengyang wrote:
> I tried to import pygame by using these commands ------------------------------------------------https://www.google.com.sg/#q=how+to+import+pygame
>
> but this is the error I got :
>
> CaiGengYangs-MacBook-Pro:~ CaiGengYang$ sudo apt-get install python-pygame
> sudo: apt-get: command not found
>
Judging by your prompt it looks like you're on a Mac. The apt-get 
program is installed on some Linux distributions (probably your 
instructions are for Ubuntu). Here are some istructions for installing 
pygame for a Macbook:

	http://pygame.org/wiki/macintosh
	http://florian-berger.de/en/articles/installing-pygame-for-python-3-on-os-x/
	https://jamesfriend.com.au/installing-pygame-python-3-mac-os-yosemite

Here's some info about getting a package manager like apt for Mac:

	http://unix.stackexchange.com/questions/80711/how-to-install-apt-get-or-yum-on-mac-os-x

Hopefully this helps.

Cheers,
Thomas



More information about the Python-list mailing list