如何用conda安装考拉?
How to install koalas with conda?
根据 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:
- https://conda.anaconda.org/anaconda-fusion/win-64
- https://conda.anaconda.org/anaconda-fusion/noarch
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
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
频道。后者也可以添加到 .condarc
配置文件中。
[编辑]
正如 OP 所指出的,这应该在文档中明确说明。我做了一个 pull request 来解决这个问题。
根据 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:
- https://conda.anaconda.org/anaconda-fusion/win-64
- https://conda.anaconda.org/anaconda-fusion/noarch
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
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
频道。后者也可以添加到 .condarc
配置文件中。
[编辑]
正如 OP 所指出的,这应该在文档中明确说明。我做了一个 pull request 来解决这个问题。