安裝py-Game

1.下載與安裝python 下一步驟到底

2. 開啟命令提示字元中或windows 10 中的PowerShell  cd C:\Users\user\AppData\Local\Programs\Python\Python36>   進入python安裝的目錄

3.到https://pip.pypa.io/en/stable/installing/  下載pip 安裝指令檔 get-pip

4. C:\Users\user\AppData\Local\Programs\Python\Python36> .\python.exe get-pip.py     執行安裝py pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 7.3MB/s
Collecting wheel
Downloading https://files.pythonhosted.org/packages/81/30/e935244ca6165187ae8be876b6316ae201b71485538ffac1d718843025a9/wheel-0.31.1-py2.py3-none-any.whl (41kB)
100% |████████████████████████████████| 51kB 10.2MB/s
Installing collected packages: pip, wheel
Found existing installation: pip 9.0.3
Uninstalling pip-9.0.3:
Successfully uninstalled pip-9.0.3
The script wheel.exe is installed in ‘C:\Users\user\AppData\Local\Programs\Python\Python36\Scripts’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use –no-warn-script-location.
Successfully installed pip-10.0.1 wheel-0.31.1
PS C:\Users\user\AppData\Local\Programs\Python\Python36> .\python.exe -m pip install -U pygame –user               執行安裝pyGame
Collecting pygame
Downloading https://files.pythonhosted.org/packages/e4/1f/23e1620de98d3eff46cbd470dc9465c5b860c06d37787781d756135b512b/pygame-1.9.3-cp36-cp36m-win_amd64.whl (4.2MB)
100% |████████████████████████████████| 4.2MB 117kB/s
Installing collected packages: pygame
Successfully installed pygame-1.9.3
PS C:\Users\user\AppData\Local\Programs\Python\Python36> .\python.exe -m pygame.examples.aliens                       測試執行pyGame的遊戲

無迴響

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

電腦主機相關
Dell 開機與LED燈號按鈕說明

黑色 = 電源負極/接地 ,黃色 = 電源正極,短路黑色和黃色超過4秒可以關機,約1秒可以重開機。 …

電腦主機相關
python轉換成執行檔錯誤1 api-ms-win-crt-runtime-l1-1-0.dll 錯誤2VCRUNTIME140.dll

1. 下載 KB2999226 以 Windows 7 64位元為例,下載的檔案為 Windows6 …

教職員資訊設備
取回多網卡 IPV6, IPV4 的 MAC

  以下參考至為 http://wiki.alarmchang.com/index.php …