from pointnet2

慈云数据 1年前 (2024-03-27) 技术支持 81 0

遇到的代码需要安装pointnet2_ops模块,记录下安装过程

项目位置

https://Github.com/erikwijmans/Pointnet2_PyTorch#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib

查找到安装方法

pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"

或者

pip install "git+git://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"

但是报错

错误一:

在这里插入图片描述

或者报错

错误二:

在这里插入图片描述

错误三:

gnutls_handshake() failed: The TLS connection was non-properly terminated.

错误一解决方法

方法一:

使用git+https时报错极有可能是服务器SSL证书没有经过第三方机构的签署,所以才报错

解决方法

git config --global http.sslVerify"False"

方法二:

只能下载.ZIP文件,放在需要调用此库的文件位置,然后

pip install pointnet2_ops_lib/.

在这里插入图片描述

错误二解决方法:

pip uninstall torch
pip install torch==1.9.0 torchvision==0.10.0   torchaudio==0.9.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

错误三解决方法:

解决方法:重置代理

git config --global  --unset http.https://github.com.proxy 

如果不行,尝试

git config --global http.sslVerify false

torch版本1.9.0

参考:

【1】ModuleNotFoundError: No module named ‘pointnet2_ops’ #3

微信扫一扫加客服

微信扫一扫加客服