Chaquopy 安装 pandas

我在安卓应用中使用 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 自动安装可用的最新版本,或者查看包存储库 这里

Related Posts

L1-L2正则化的不同系数

我想对网络的权重同时应用L1和L2正则化。然而,我找不…

使用scikit-learn的无监督方法将列表分类成不同组别,有没有办法?

我有一系列实例,每个实例都有一份列表,代表它所遵循的不…

f1_score metric in lightgbm

我想使用自定义指标f1_score来训练一个lgb模型…

通过相关系数矩阵进行特征选择

我在测试不同的算法时,如逻辑回归、高斯朴素贝叶斯、随机…

可以将机器学习库用于流式输入和输出吗?

已关闭。此问题需要更加聚焦。目前不接受回答。 想要改进…

在TensorFlow中,queue.dequeue_up_to()方法的用途是什么?

我对这个方法感到非常困惑,特别是当我发现这个令人费解的…

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注