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

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