gpt4 book ai didi

python - 如何使用conda安装考拉?

转载 作者:行者123 更新时间:2023-12-01 06:23:47 25 4
gpt4 key购买 nike

根据koalas docs ,使用 conda 安装 koalas 应该很简单

conda install koalas

但这会引发错误:

Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  • koalas

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

我尝试运行

conda install -c conda-forge pyspark

也是首先,而且效果似乎很好。但是 koalas 仍然会引发同样的错误。还有什么事情吗

Koalas requires PySpark so please make sure your PySpark is available.

conda install -c conda-forge pyspark 太明显而无法包含在文档中?

我还在虚拟环境中尝试了整个过程

conda create --name koalas-dev-env

如果这很重要的话。

系统信息:

Python 3.7.0
Anaconda 2019.10

最佳答案

正在运行

conda create -c conda-forge -n koalas-dev-env koalas pyspark

就可以了。由于您没有提供 conda-forge channel ,因此您遇到了问题。您还可以将后者添加到 .condarc 配置文件中。

[编辑]

正如OP所指出的,这应该在文档中明确说明。我做了一个pull request来解决这个问题。

关于python - 如何使用conda安装考拉?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60263669/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com