解决:ModuleNotFoundError: No module named ‘open3d.geometry‘和name ‘PointCloud‘ is not defined

Posted 沉迷单车的追风少年

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决:ModuleNotFoundError: No module named ‘open3d.geometry‘和name ‘PointCloud‘ is not defined相关的知识,希望对你有一定的参考价值。


项目场景:

三维重建



问题描述:

import torch
import numpy as np
import open3d as o3d
# from open3d import *
import open3d.geometry.PointCloud as PointCloud

报错:
 

    import open3d.geometry.PointCloud as PointCloud
ModuleNotFoundError: No module named 'open3d.geometry'


解决方案:

import open3d as o3d
pcd = o3d.geometry.PointCloud()

以上是关于解决:ModuleNotFoundError: No module named ‘open3d.geometry‘和name ‘PointCloud‘ is not defined的主要内容,如果未能解决你的问题,请参考以下文章

Python运行出现:ModuleNotFoundError: No module named 'logbook',解决办法

解决pycharm中报ModuleNotFoundError: No module named ‘tensorflow‘错误

解决ModuleNotFoundError: No module named ‘pip‘问题

python 导入自写包时ModuleNotFoundError 解决

ModuleNotFoundError: No module named ‘pywt‘解决方法

ModuleNotFoundError: No module named ‘pywt‘解决方法