上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页

2021年10月21日

cv2 报错 libGL.so.1: cannot open shared object file: No such file or directory

摘要: 问题描述 import cv2 from .cv2 import * libGL.so.1: cannot open shared object file: No such file or directory 该问题为docker内报错, 导入cv2错误 解决方法 sudo apt update s 阅读全文

posted @ 2021-10-21 09:35 闹不机米 阅读(838) 评论(0) 推荐(0)

2021年10月15日

linux 安装GDAL (python)

摘要: 安装 sqlite3 下载 https://www.sqlite.org/download.html 解压 tar -xvzf sqlite-snapshot-202110061004.tar.gz 编译安装 cd sqlite-snapshot-202110061004 ./configure m 阅读全文

posted @ 2021-10-15 19:06 闹不机米 阅读(2797) 评论(0) 推荐(0)

2021年10月13日

python 虚拟环境

摘要: 虚拟环境 pip install virtualenvwrapper-win windows pip install virtualenvwrapper ubuntu 创建虚拟环境: workon 查看虚拟环境 mkvirtualenv 虚拟环境的名字 - -- mkvirtualenv 1902f 阅读全文

posted @ 2021-10-13 09:48 闹不机米 阅读(71) 评论(0) 推荐(0)

2021年9月27日

Win10 安装gfortarn

摘要: https://www.scivision.dev/windows-gcc-gfortran-cmake-make-install/ 阅读全文

posted @ 2021-09-27 10:11 闹不机米 阅读(83) 评论(0) 推荐(0)

2021年9月19日

Mysql

摘要: 查看数据库所有设置 show global variables; 查看错误 show warnings; 存在及更新,不存在则插入 insert into 表名 (字段1, 字段2, 字段3) values (值1, 值2, 值3) on duplicate key update 字段1=value 阅读全文

posted @ 2021-09-19 10:48 闹不机米 阅读(29) 评论(0) 推荐(0)

2021年9月1日

Oracle

摘要: 数据库连接 # 需要设置这个不然插入中文会乱码 os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8' db = cx_Oracle.connect('name/pass@ip:1521/helowin') cursor=db.cursor( 阅读全文

posted @ 2021-09-01 17:43 闹不机米 阅读(37) 评论(0) 推荐(0)

2021年6月22日

Win10 安装GNU 编译器(gcc、g++ 和 gfortran)

摘要: 安装地址 https://www.scivision.dev/windows-gcc-gfortran-cmake-make-install/ 注意添加环境变量。。。 阅读全文

posted @ 2021-06-22 20:23 闹不机米 阅读(1004) 评论(0) 推荐(0)

2021年6月10日

basemap 画图按照 shape 文件裁切图片, 经纬度转为web墨卡托

摘要: vis_clevs = [0, 0.2, 0.5, 1, 2, 3, 5, 10, 20, 30, 9999], vis_colors = ['#642B00', '#9A00FF', '#FE0300', '#F95C00', '#FDB157', '#FFFF00', '#76FD2C', '# 阅读全文

posted @ 2021-06-10 17:40 闹不机米 阅读(359) 评论(0) 推荐(0)

python 画 3D 图

摘要: 直接上代码 fig = plt.figure(figsize=(19.2, 14.4)) ax = fig.add_axes([0, 0, 1, 1], projection='3d') ax.set_zlim(bottom=0) # 有这个可以把多个图层的上下间隔弄的更大,相当于自己从新设置 z 阅读全文

posted @ 2021-06-10 17:31 闹不机米 阅读(675) 评论(0) 推荐(0)

2021年6月7日

Object of type ndarray is not JSON serializable

摘要: class NpEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, np.integer): return int(obj) elif isinstance(obj, np.floating): return f 阅读全文

posted @ 2021-06-07 09:54 闹不机米 阅读(636) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页

导航