尝试安装 conda 包并收到错误

问题描述 投票:0回答:2

我尝试使用以下命令从 esri 安装 arcgis conda 软件包: conda 安装-c esri arcgis

失败并显示以下错误消息:

github-image/arcgis-python-api [master] » conda install -c esri arcgis
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.

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

  - arcgis

Current channels:

  - https://conda.anaconda.org/esri/osx-arm64
  - https://conda.anaconda.org/esri/noarch
  - https://repo.anaconda.com/pkgs/main/osx-arm64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-arm64
  - https://repo.anaconda.com/pkgs/r/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.

我检查了 anaconda.org 存储库,在 esri 频道下似乎有一个 arcgis 包:

请注意,这是在采用 Apple 芯片的 MacOS 上。

python anaconda conda arcgis esri
2个回答
0
投票

请注意,Anaconda Cloud 没有针对该软件包的 osx-arm64 构建。您可以尝试安装 osx-64 版本并在模拟模式下运行它。这需要在一个新鲜的环境中,例如,

CONDA_SUBDIR=osx-64 conda create -n foo -c esri arcgis

这与安装旧版本 Python 的用户情况类似,因此您可能需要额外阅读无法在 osx-arm64 上安装 Python 3.7


0
投票

我也有同样的问题。我通过 pip 找到了一个折衷的替代方案并安装旧版本的 Python 库。

pip install arcgis==1.8.*

希望这对您有一点帮助

© www.soinside.com 2019 - 2024. All rights reserved.