Ubuntu 使用中遇到的各类bugs,备忘

  1. conda: Rolling back transaction: done OSError(13, ‘Permission denied’)
    这里写图片描述
    一定得记录一下这个找了将近两个小时的bug 的正确处理姿势:
    (机会在把google的各条搜索结果都变为深蓝色之后,finally……)
    这里写图片描述
    在记录一下这个出处,十分奈斯的小哥哥:
    https://github.com/conda/conda/issues/3448

好了!该去干正事了!
2. FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
Solution:

pip install h5py==2.8.0rc1

记录出处:https://github.com/h5py/h5py/issues/974
3. QXcbConnection: Could not connect to display
[1] 21183 abort (core dumped) ipython
这里写图片描述
Solution:

In [1]: import os
In [2]: os.environ['QT_QPA_PLATFORM']='offscreen'
In [3]: import matplotlib.pyplot

记录出处:https://github.com/ContinuumIO/anaconda-issues/issues/1806
4. 在ipython下import caffe 时报错:ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
Solution:安装cudnn 7.x
命令:conda install -c anaconda cudnn

  1. 又重装了一遍caffe(别提有多扎心了……),在make all 阶段报错
Makefile:625: recipe for target '.build_release/tools/upgrade_net_proto_binary.bin' failed
make: *** [.build_release/tools/upgrade_net_proto_binary.bin] Error 1

我按照https://github.com/BVLC/caffe/issues/2348里的方法,先cmake .,再make all,不再报错。
7. 又有报错,里面有大量的//usr/lib/libgdal.so.20: undefined reference to TIFFMergeFieldInfo@LIBTIFF_4.0' 之类的错误。
Solution:安装libgeotiff-dev: sudo apt-get install libgeotiff-dev

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值