crontab,定时任务执行找不到库or shell可执行,crontab 定时任务下就不能执行,tensorflow,ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
摘要:在线上启动一个定时任务,但是起来查看,发现任务执行找不到库,报cuda错误: ImportError: libcuda.so.1: cannot open shared object file: No such file or directory 后面在/usr/local/nvidia/lib64
阅读全文
python,opencv,imread,imwrite,存储,读取图像像素不一致,这种情况是label使用jpg格式
摘要:最近在做图像分割,需要使用一些分割图片的label,但是发现存储的分割label感觉被平滑过了,即使使用 也没有作用,后面发现分割的label格式存储为png格式就可以了,猜测(没有深纠哈)是jpg压缩什么的导致的。
阅读全文
git clone Failed to connect to 127.0.0.1 port 43213: Connection refused
摘要:不知道为什么使用git clone 的时候报了上面的错误,后面发现是 127.0.0.1 port 43213的端口被代理占用了,可以这样查看: $ env|grep -i proxy 结果是: NO_PROXY=localhost,127.0.0.0/8,::1http_proxy=http://
阅读全文
python-imaging-tk : Depends: python-imaging (= 1.1.7-4ubuntu0.12.04.3) but 3.1.2-0ubuntu1.1 is to be installed E: Unable to corre
摘要:最近,将电脑主机升级到ubuntu16.04,但是需要用到 python-imaging-tk,先是报错: import PIL.ImageTk as ImageTkImportError: No module named ImageTk 参考网上的是pythonimaging-tk的包没有安装,所
阅读全文
tensorflow 升级后报错:ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
摘要:我的tensorflow之前的版本是1.2的所以支持cudnn5,但是tensorflow1.3及以上就是支持cudnn6。 查看: /usr/local/cuda/lib64$ ls libcudnn*libcudnn.so libcudnn.so.5 libcudnn.so.5.1.5 libc
阅读全文
tensorflow pip install 安装指定版本的包并指定安装源(速度会快很多)
摘要:index-url = https://pypi.tuna.tsinghua.edu.cn/simple
阅读全文
Ubuntu中清理Network下Connect to Server的入口
摘要:转自:http://blog.csdn.net/maxilbert/article/details/51126467 connect to server入口列表文件以xml格式存放在 ~/.config/nautilus/servers 中 用gedit或vi打开~/.config/nautilus
阅读全文
rename批量修改文件并在后缀前加字段
摘要:rename 's/\.jpg$/generate_badu\.jpg/' * 其中,'.'需要加转义斜杠'\', '*'代表文件夹下所有文件
阅读全文
python opencv3 给图片加中文
摘要:转自:https://www.cnblogs.com/arkenstone/p/6961453.html opencv3.2将中文输出到图片上 opencv自带的putText函数无法输出utf8类型的字符,因此无法将中文打印到图片上。用这篇文章的freetype可以实现中文输出,但是需要将字符解码
阅读全文
tkinter绑定鼠标滚轮滚动事件 canvas.bind("<MouseWheel>", processWheel) 失效
摘要:其实,不同系统不一样,我的是Ubuntu 所以是<Button-4> <Button-5> 见下: 来自:https://stackoverflow.com/questions/17355902/python-tkinter-binding-mousewheel-to-scrollbar Platf
阅读全文
python 中参数*args, **kwargs
摘要:python 中参数*args, **kwargs python 中参数*args, **kwargs def foo(*args, **kwargs): print 'args = ', args print 'kwargs = ', kwargs print ' ' if __name__ ==
阅读全文