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

使用LSTM在Python中预测未来值

这段代码可以预测指定股票的当前日期之前的值,但不能预测…

如何在gensim的word2vec模型中查找双词组的相似性

我有一个word2vec模型,假设我使用的是googl…

dask_xgboost.predict 可以工作但无法显示 – 数据必须是一维的

我试图使用 XGBoost 创建模型。 看起来我成功地…

ML Tuning – Cross Validation in Spark

我在https://spark.apache.org/…

如何在React JS中使用fetch从REST API获取预测

我正在开发一个应用程序,其中Flask REST AP…

如何分析ML.NET中多类分类预测得分数组?

我在ML.NET中创建了一个多类分类项目。该项目可以对…

发表回复

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