python2python3如何利用命令行安裝pygame?

在網上查找到的不少命令會報錯,修改後如下:

一、安裝或更新pip:

在Powershell輸入:

cd D:\python37\Scripts

(自己依樣修改路徑)

easy_install-3.7.exe pip

如果提示更新,直接依樣畫葫蘆即可。

二、安裝pygame:

重新打開並在Powershell輸入:

python2 -m pip install -U pygame

python3 -m pip install -U pygame

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章