使用 conda 安装 open3d 时出现 UnsatisfiableError

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

我正在尝试将 open3d 安装到我的 conda 环境中。这就是我所做的:

conda create --name env python=3.9 -y
conda activate env
conda install -c open3d-admin open3d

但是最后一个命令失败并显示以下输出:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: / 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                      

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.35=0
  - python=3.9 -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.35
python conda open3d
2个回答
2
投票

与 Conda Forge 合作

没有记录,但似乎他们的软件包是按照优先顺序构建的

conda-forge
通道。所以,请尝试:

conda create -n env -c conda-forge -c open3d-admin python=3.9 open3d

或使用 YAML:

so-open3d.yaml

name: so-open3d
channels:
  - conda-forge
  - open3d-admin
  - nodefaults
dependencies:
  - python=3.9
  - open3d

conda env create -n env -f so-open3d.yaml

0
投票

我也有同样的问题。我按照merv的回答做了,结果成功了。至少,直到我在 Python 中导入 open3d 之前,我都会收到此错误:“[警告]自 Open3D 0.15 起,不推荐通过 conda 安装 Open3D。请通过以下方式重新安装 Open3D:

pip install open3d -U
。”

Open3D 似乎不应该与 conda 一起安装。

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