Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
560 views
in Technique[技术] by (71.8m points)

python - How to uninstall pygame on mac OSX 10.9.4

In fact, I meet the problem that my pygame can not load png image and the method pygame.image.get_extended() returns 0, which means false

Traceback (most recent call last):
  File "testpygame.py", line 5, in <module>
    myimage = pygame.image.load("diamond.png")
pygame.error: File is not a Windows BMP file

I search for solutions and some people suggest that installing the proper version of pygame might help, so I want to uninstall my current pygame and reinstall

But I dont know how to uninstall pygame on OSX

I installed 2 versions of python on mac (2.7 and 3.3), they are in the list of applications. But as we all know that the default python in mac that runs in terminal is another one given by the operating system itself, the different versions of python in mac totally confused me...

So, how can I uninstall pygame of the proper python version in my mac..? Thanks a lot

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I figure out the solution by finding my python's path in OSX, and delete the pygame library in site-package. My python's site-package's path is /Library/Python/2.7/site-packages, and I delete the pygame relevant folders here to uninstall pygame.

After I uninstall pygame and reinstall it, the problem that 'pygame.error: File is not a Windows BMP file' was also solved.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...