為Python 3.5及以上安裝Pygame模組
折騰了一個早上,想給安裝的Python 3.5.2安上Pygame模組。在http://www.pygame.org下載的最高只到pygame-1.9.2a0.win32-py3.2,也就是隻能與Python 3.2.X系列搭配。所以這個安裝程式執行後,檢測不到機器上安裝的Python 3.5.2。
查了一輪後,發現,可以到http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame這個網址找到最新,未公佈的pygame安裝包,選擇適合的版本。CP35就是針對Python3.5.X的。我下了pygame-1.9.2b1-cp35-cp35m-win32.whl。
切換到Windows資源管理器中,將下載的pygame-1.9.2b1-cp35-cp35m-win32.whl複製到Python的安裝資料夾中的Scripts資料夾中。這在個資料夾中,按住Shift鍵,點選滑鼠右鍵,選擇“在此處開啟命令視窗”。
在命令視窗中,輸入pip3 install pygame-1.9.2b1-cp35-cp35m-win32.whl,執行命令。就安裝好啦。開啟IDLE,在>>>後輸入import pygame,沒有出錯資訊,就是安裝成功了。
相關文章
- Windows Server 2016及以上版本安裝.net3.5方法WindowsServer
- 安裝python3.5注意事項及相關命令Python
- pycharm 安裝 pygamePyCharmGAM
- Python模組安裝Python
- Ubuntu 如何安裝 pygameUbuntuGAM
- pycharm如何安裝pygame?PyCharmGAM
- 【Python】Python安裝模組Python
- Ubuntu如何解除安裝Python3.5UbuntuPython
- pycharm安裝python模組PyCharmPython
- linux如何解除安裝python3.5LinuxPython
- Python安裝selenium模組Python
- python openssl模組如何安裝?Python
- python 安裝模組的方法Python
- python-模組,包,安裝Python
- strawberry perl安裝,環境變數及模組安裝變數
- 在 ubuntu 中安裝 python3.5、 tornado、 pymysqlUbuntuPythonMySql
- Centos下安裝FastDFS及Nginx模組CentOSASTNginx
- win10.net3.5安裝方法_win10如何安裝.net3.5Win10
- net framework 3.5怎麼安裝 net framework 3.5無法安裝怎麼辦Framework
- Python安裝模組有哪些方法?Python
- python安裝模組cx_OraclePythonOracle
- Python pip的安裝及解除安裝Python
- 安裝python pip,再安裝request模組,執行python程式碼Python
- 理解Node.js安裝及模組化Node.js
- 3.5安裝ideay、快捷鍵Idea
- 【Python篇】---Python3.5在Centoos的安裝教程--超實用Python
- 使用 Python 和 Pygame 模組構建一個遊戲框架PythonGAM遊戲框架
- pygame模組引數彙總(python遊戲程式設計)GAMPython遊戲程式設計
- python模組安裝目錄在哪裡Python
- 怎樣安裝python的GPIO模組Python
- Python模組、第三方模組安裝、模組匯入教程Python
- 【PHP】Mcrypt 擴充套件模組安裝及使用PHP套件
- win10安裝.net3.5Win10
- win10 安裝framework3.5Win10Framework
- win8安裝.net3.5
- python中pygame遊戲打包為exe檔案PythonGAM遊戲
- 入門學Python一定要知道的requests模組安裝及使用Python
- Python paramiko模組的安裝與使用Python