摘要: Log Formatter #!/usr/bin/env python # -*- coding: utf-8 -*- import datetime import os import logging from logging import handlers import json import r 阅读全文
posted @ 2025-02-11 16:07 春树&暮云 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 异步并发任务设置超时和融断机制 async def concurrent_task_with_timeout(coroutines, timeout=None, max_concurrency=None): coroutines = [coro for coro in coroutines] ass 阅读全文
posted @ 2025-01-13 14:10 春树&暮云 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 问题 二级菜单联动筛选,让标注更省力 步骤 准备一级、二级菜单选项的映射表。公式 -> 根据所选内容创建 准备一级下拉菜单选项。数据->数据验证->序列->选中区域 准备二级下拉菜单选项。数据->数据验证->序列->公式(=INDIRECT(INDIRECT("C" & ROW()))) +拖动完成 阅读全文
posted @ 2024-07-22 18:10 春树&暮云 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 问题 docker build过程pip install 提示RuntimeError: can't start new thread 解决 pip install --progress-bar off xxx # docker会启动新的线程用来打印日志 阅读全文
posted @ 2024-02-19 18:30 春树&暮云 阅读(1058) 评论(0) 推荐(0) 编辑
摘要: 解决 docker container ls docker rm -f $container_id 阅读全文
posted @ 2024-01-02 20:34 春树&暮云 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 安装 RUN pip install --no-cache-dir torch==2.1.1+cpu -f https://download.pytorch.org/whl/torch_stable.html RUN pip install transformers tqdm numpy sciki 阅读全文
posted @ 2023-11-22 10:52 春树&暮云 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 问题 python f-string 使用{},如果不转义,会报错,使用转义字符{依然有问题 解决 需要使用{和}来转义。 eg.1. f"请告诉我你的{name}{{测试}}" => "请告诉我你的名字{测试}" 阅读全文
posted @ 2023-10-25 14:48 春树&暮云 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 问题1 ERROR: Could not find a version that satisfies the requirement paddlepaddle-gpu2.4.2.post117 解决方案: python3 -m pip install paddlepaddle-gpu2.4.2.po 阅读全文
posted @ 2023-09-25 16:29 春树&暮云 阅读(188) 评论(0) 推荐(0) 编辑
摘要: # 注意事项 涉及到本地的第三方依赖包,尽量打包成压缩包,发现第三方依赖包上传到git,会被修改成一个index文件 阅读全文
posted @ 2023-08-02 09:58 春树&暮云 阅读(8) 评论(0) 推荐(0) 编辑
摘要: # 问题 安装一个包,本身已经包含某依赖,在新的安装包还会重复安装 # 方案 ## 方法1 手动提前安装好包对应的依赖包,然后无依赖安装该包 pip install --no-deps xxx ## 方法2 下载包并修改对应的依赖包版本,再安装。如: Clone the library and ch 阅读全文
posted @ 2023-07-31 10:56 春树&暮云 阅读(99) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示