遇到的代碼需要安裝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.
錯誤一解決方法:
方法一:
當(dāng)使用git+https時報錯極有可能是服務(wù)器的SSL證書沒有經(jīng)過第三方機構(gòu)的簽署,所以才報錯
解決方法
git config --global http.sslVerify"False"
方法二:
只能下載.zip文件,放在需要調(diào)用此庫的文件位置,然后
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文章來源:http://www.zghlxwxcb.cn/news/detail-642713.html
參考:
【1】ModuleNotFoundError: No module named ‘pointnet2_ops’ #3文章來源地址http://www.zghlxwxcb.cn/news/detail-642713.html
到了這里,關(guān)于from pointnet2_ops import pointnet2_utils 安裝過程的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!