在windows7 系統(tǒng)下搭建Pygame環(huán)境:
Python版本:python-3.5.1.exe
Pygame:pygame-1.9.2a0-cp35-none-win32.whl
首先安裝Python3.5.1,然后找到Python3.5的安裝路徑,如:C:\Python35\Scripts
CMD打開終端,cd到python安裝目錄 cd?C:\Python35\Scripts 然后執(zhí)行如下命令:
pip install wheel
c> cd?C:\Python35\Scripts?pip install wheel
等安裝好wheel后再安裝pygame 執(zhí)行命令:pip install xxxx.whl
等執(zhí)行結(jié)束后,pygame就安裝完整