我在安卓应用中使用 Chaquopy,当我在 build.gradle 文件中使用以下代码尝试安装 pandas 时:
pip { install "joblib" install "pandas==1.5.3"}
,我收到了以下警告:
_Warning: Package 'pandas._libs.src' is absent from the `packages` configuration. !! ******************************************************************************** ############################ # Package would be ignored # ############################ Python recognizes 'pandas._libs.src' as an importable package[^1], but it is absent from setuptools' `packages` configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'pandas._libs.src' is explicitly added to the `packages` configuration field.
以及以下错误:
Failed to install pandas==1.5.3 from https://files.pythonhosted.org/packages/74/ee/146cab1ff6d575b54ace8a6a5994048380dc94879b0125b25e62edcb9e52/pandas-1.5.3.tar.gz#sha256=74a3fd7e5a7ec052f183273dc7b0acd3a863edf7520f5d3a1765c04ffdb3b0b1.For assistance, please raise an issue at https://github.com/chaquo/chaquopy/issues. error: CCompiler.compile: Chaquopy cannot compile native code
Chaquopy 版本: id 'com.chaquo.python' version '14.0.2' apply false
如果能得到解决这些问题的帮助或指导,我将不胜感激。
我尝试了不同的 pandas 版本,但没有找到兼容的版本。我也尝试下载 .whl 文件并使用其路径进行安装。
回答:
Chaquopy 当前支持的最高 pandas 版本是 Python 3.8 上的 1.3.2,或者 Python 3.9 和 3.10 上的 1.5.0。
要发现这一点,你可以删除版本号要求,让 pip 自动安装可用的最新版本,或者查看包存储库 这里。