from pointnet2_ops import pointnet2_utils 安装过程

遇到的代码需要安装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

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
青葱年少的头像青葱年少普通用户
上一篇 2023年11月10日
下一篇 2023年11月10日

相关推荐