深度学习过程中遇到的坑和总结
问题列表
配置环境、安装包等过程中遇到的坑,获得的经验与感悟
1. ubuntu22.04.1上安装wxPython报错
报错如下:
解决方法:
依次执行下面的命令:
sudo apt-get install libwebkit2gtk-4.0-dev
pip install wxPython
2. ubuntu上使用scikit-image程序无法可视化
这里遇到了几个问题
- 一.
Unable to access the X Display, is $DISPLAY set properly?
解决方法:用vim在~/.bashrc文件末尾加入export DISPLAY=localhost:10.0
,这个localhsot
改成本机(不是远程,windows中可以在cmd窗口使用ipconfig查看自己的IPv4地址)IP, 然后执行命令source ~/.bashrc
让刚才的改动生效. - 二 执行
xclock
测试显示功能时报错
解决方法:使用sudo apt install x11-apps
下载相关组件 - 三 配置本地文件
解决方法:
重点是最后两句。然后下载VcXsrv到本地,把Display number设置为10,具体可以参考这篇博客.如下配置 VS Code 的 Remote-SSH 需要用到的 .ssh\config 文件 Host 主机名 HostName 域名或IP User 用户名 Port SSH的端口 IdentityFile ~/.ssh/id_rsa ForwardX11 yes ForwardX11Trusted yes
- 四 再次执行xclock时提示
Authorization required, but no authorization protocol specified Error: Can't open display: localhost:10.0
解决方法:执行xhost +
一切解决后执行clock
命令就会在本地windows系统上出现这个窗口。
继续可视化时遇到缺少相关库的错误
问题 :
解决办法:缺少相关的链接,可以参考博客使用软链接,也可以直接pip install open3d
安装相关库
3. glcanvas.GLCanvas.__init__()
报错
报错的代码如下:
解决方法:未解决
[1] https://zhuanlan.zhihu.com/p/657247771
[2] https://www.cnblogs.com/KylinBlog/p/16588037.html
[3] https://blog.csdn.net/weixin_42092516/article/details/129879122