在anaconda中安装pygame时出现以下问题:
-
使用conda install pygame或者在anaconda.org网站中搜索出现的conda install -c darthhack pygame 安装时均出现unsatisfiableError….的错误。
-
使用pip install pygame 时出现read time out错误。
针对第二种方法出现的问题。conda安装默认从外网下载,因为网络等原因,我们可以添加国内镜像源,这里使用清华大学镜像源,使用如下方法安装:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pygame
参考链接