【发布时间】:2019-05-16 08:24:00
【问题描述】:
最近安装了一个需要Pygame学习环境的包:https://github.com/ntasfi/PyGame-Learning-Environment
我在 install_requires 中添加了“ple”,但尽管 PyGame-Learning-Environment 已成功安装,但仍出现此错误:
Could not find a version that satisfies the requirement ple (from MonsterKong-RandomEnsemble==0.0.1) (from versions: ) No matching distribution found for ple (from MonsterKong-RandomEnsemble==0.0.1)
【问题讨论】:
-
该项目未上传到 pypi.org,其中
pip和easy_install默认查找要下载和安装的包。如果您希望在安装脚本中将包声明为依赖项,则需要指定下载包的链接;查看这个问题了解更多详情:Python setuptools: How can I list a private repository under install_requires?
标签: python pygame setuptools