我承認我完全蟒蛇簡單化安裝。有人可以幫助我如何安裝模塊蟒蛇安裝上豹
我想玩PyGame,PyOpenGL等。所以我安裝它們,但我每次輸入「import pygame」錯誤消息顯示出來。
這裏是我的環境至今。
在.bash_profile中
PATH=${PATH}:/System/Library/Frameworks/Python.framework/Versions/Current/bin
使用的easy_install PyOpenGL放置在此
/Library/Python/2.5/site-packages/PyOpenGL-3.0.0b8-py2.5.egg
定位pygame的模塊
dchong:~ danielchong$ locate pygame
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2app/recipes/pygame.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2app/recipes/pygame.pyc
dchong:~ danielchong$ locate pyopengl
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2app/recipes/pyopengl.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2app/recipes/pyopengl.pyc
當我運行python
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pygame