10 2021 档案

线程,进程
摘要:线程 from concurrent.futures.thread import ThreadPoolExecutor # 初始化线程池 设置最大线程数 executor = ThreadPoolExecutor(max_workers=5) for fn in range(10): # 任务数 # 阅读全文

posted @ 2021-10-27 23:30 闹不机米 阅读(46) 评论(0) 推荐(0) 编辑

denied: requested access to the resource is denied
摘要:使用 docker push 镜像时,出现 denied: requested access to the resource is denied。原因和 Git push 代码一样,为了安全起见,在 Docker Hub 无法确定操作者的情况下,是无法完成 push 操作的。 需要使用 docker 阅读全文

posted @ 2021-10-21 10:00 闹不机米 阅读(245) 评论(0) 推荐(0) 编辑

python ftplib模块使用
摘要:Python中默认安装的ftplib模块定义了FTP类,可用来实现简单的ftp客户端,用于上传或下载文件。 ftp登陆连接 from ftplib import FTP #加载ftp模块 ftp=FTP() #设置变量 ftp.set_debuglevel(2) #打开调试级别2,显示详细信息 ft 阅读全文

posted @ 2021-10-21 09:55 闹不机米 阅读(253) 评论(0) 推荐(0) 编辑

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 闹不机米 阅读(802) 评论(0) 推荐(0) 编辑

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 闹不机米 阅读(2705) 评论(0) 推荐(0) 编辑

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

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

导航

点击右上角即可分享
微信分享提示