Thanks very much for your response. I cleared out
my 1.9.1 version of pygame, and used pip. Here's what happened:
IrvKalbs-MBP:~ irvkalb$ pip
install pygame
Collecting pygame
Using cached
pygame-1.9.2-cp27-cp27m-macosx_10_9_intel.whl
Installing collected packages:
pygame
Exception:
Traceback
(most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/basecommand.py",
line 215, in main
status = self.run(options, args)
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/commands/install.py",
line 342, in run
prefix=options.prefix_path,
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_set.py",
line 784, in install
**kwargs
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_install.py",
line 851, in install
self.move_wheel_files(self.source_dir, root=root,
prefix=prefix)
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/req/req_install.py",
line 1064, in move_wheel_files
isolated=self.isolated,
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/wheel.py",
line 377, in move_wheel_files
clobber(source, dest, False, fixer=fixer, filter=filter)
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/wheel.py",
line 329, in clobber
os.utime(destfile, (st.st_atime, st.st_mtime))
OSError:
[Errno 1] Operation not permitted:
'/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pygame/bitmask.h'
IrvKalbs-MBP:~ irvkalb$
However,
that did leave me with a pygame folder and a
pygame-1.9.2-dist-info folder in my site-packages folder. And
when I try to do import it from the shell in IDLE, I get this:
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17
2016, 12:40:10)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "copyright", "credits" or "license()" for
more information.
>>> import pygame
Traceback (most recent call last):
File "<pyshell#0>", line 0, in
<module>
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/__init__.py",
line 133, in <module>
from pygame.base import *
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so,
2): Symbol not found: _SDL_EnableUNICODE
Referenced from:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so
Expected in: flat namespace
in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so
>>>
Something looks very wrong. Any other suggestions
for getting a stable Python/IDLE environment with pygame on
Mac Sierra (10.12)?
Thanks,
Irv