ubuntu18.04安装open3d阿里源
时间: 2023-05-30 07:05:07 浏览: 341
以下是在Ubuntu 18.04上通过阿里源安装Open3D的步骤:
1. 首先,打开终端并输入以下命令:
```
sudo sh -c "echo 'deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse' > /etc/apt/sources.list"
sudo sh -c "echo 'deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse' >> /etc/apt/sources.list"
sudo sh -c "echo 'deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse' >> /etc/apt/sources.list"
sudo sh -c "echo 'deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse' >> /etc/apt/sources.list"
sudo sh -c "echo 'deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse' >> /etc/apt/sources.list"
sudo apt-get update
```
这将添加阿里的Ubuntu源并更新软件包列表。
2. 接下来,输入以下命令以安装Open3D:
```
sudo apt-get install python3-open3d
```
这将安装Open3D及其所有依赖项。
3. 安装完成后,您可以在Python中导入Open3D并开始使用它:
```
import open3d as o3d
```
希望这可以帮助您安装Open3D。
阅读全文