提问人:opike 提问时间:8/3/2023 更新时间:9/15/2023 访问量:206
尝试安装 conda 软件包并收到错误
Attempting to install conda package and receiving error
问:
我正在尝试使用以下命令从 esri 安装 arcgis conda 包: conda install -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 资料档案库,似乎有一个 arcgis 包位于 esri 通道下:
请注意,这是在搭载 Apple 芯片的 MacOS 上。
答:
0赞
merv
8/3/2023
#1
请注意,Anaconda Cloud 没有该包的 osx-arm64 版本。您可以尝试安装 osx-64 版本并在仿真模式下运行它。这需要在新鲜的环境中进行,例如,
CONDA_SUBDIR=osx-64 conda create -n foo -c esri arcgis
这与用户安装旧版本的 Python 的情况类似,因此您可能还需要阅读无法在 osx-arm64 上安装 Python 3.7。
评论
0赞
opike
8/5/2023
谢谢 - 我能够将它安装在运行在英特尔芯片上的旧款 Macbook Pro 上
0赞
Solie
9/15/2023
#2
我有同样的问题。我通过 pip 和安装旧版本的 Python 库找到了一个折衷的替代方案。
pip install arcgis==1.8.*
希望这会有所帮助
评论