我要安装的软件包是
apache-tvm
。我检查了它没有在 pypi 中指定 python 版本:https://pypi.org/project/apache-tvm/
我可以使用pip在python 3.10中安装它:
> python --version
Python 3.10.13
> pip install apache-tvm
Looking in indexes: https://mirrors.pku.edu.cn/pypi/web/simple
...
install done
但是在python 3.12中,pip找不到包:
> python --version
Python 3.12.2
> pip install apache-tvm
Looking in indexes: https://mirrors.pku.edu.cn/pypi/web/simple
ERROR: Could not find a version that satisfies the requirement apache-tvm (from versions: none)
ERROR: No matching distribution found for apache-tvm
我想知道为什么pip在高版本下不起作用。这可能是由于某些版本检查造成的,但我在 pypi 项目页面上找不到它。
Python 3.12.2 于 2024 年 2 月 6 日发布,最新版本的 apache-tvm 于 2023 年 11 月发布。可能只是缺少支持,正在修复中,但根据日期,这就是我想要的期待。