不能安装pygame
不能用 pip install pygqme 安装pygame。搞了2天都没搞好,求助大神们有什么方法搞定~~ 本帖最后由 tommyyu 于 2022-11-10 10:02 编辑在终端输入 python -m pip install pygame 可能是安装的时候没添加环境变量
可以戳:https://fishc.com.cn/thread-180234-1-1.html 先把 pip 的安装源设定在国内:
起一个 CMD 窗口,根据需要,键入下面的命令:
【清华大学】:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
【阿里云】:
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
pip config set install.trusted-host mirrors.aliyun.com
清华大学和阿里云二选一就可以了,从此以后,你所有的 pip 安装使用的源都是国内的,网速杠杠的。
改了安装源,再试试
pip install pygame
降级到 Python 3.10 可能是版本问题,我装了 Python 3.11的。我试下 Python 3.10的试试能不能装
页:
[1]