- 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
- 又重装了一遍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