随笔分类 -  踩坑集合

摘要:更新: 使用explorer获取的token在不到半天就过期了,官方说明令牌的有效期是一小时。可能还是需要通过app配置得到一个持久化的token 请求授权的文档: https://learn.microsoft.com/en-us/graph/auth-v2-user?tabs=http 委托和应 阅读全文
posted @ 2025-02-28 11:02 踩坑大王 阅读(41) 评论(0) 推荐(0) 编辑
摘要:client nobind dev tun remote-cert-tls server resolv-retry infinite remote 126.55 21194 tcp # 添加这行代码 redirect-gateway def1 bypass-dns <key> BEGIN PRIVA 阅读全文
posted @ 2025-02-25 23:23 踩坑大王 阅读(1) 评论(0) 推荐(0) 编辑
摘要:读取xlsx文件,其中一个单元格为“440602199305220000”,类型是number, 通过read_excel读取后,变成了“440602199305219968 ” column_list = [] df_column = pd.read_excel(path, sheet_name= 阅读全文
posted @ 2025-02-17 00:16 踩坑大王 阅读(30) 评论(0) 推荐(0) 编辑
摘要:celery创建一个共享队列rpa,该队列下有一个轮循任务和执行任务 轮循任务会读取redis队列,循环队列并根据任务情况执行任务 轮循间隔为1s,每次轮循都会循环队列的所有任务 启动命令为 celery -A app.celery worker -P gevent -c 1 --loglevel 阅读全文
posted @ 2025-01-02 13:14 踩坑大王 阅读(29) 评论(0) 推荐(0) 编辑
摘要:Failed to build fasttext ERROR: Could not build wheels for fasttext, which is required to install pyproject.toml-based projects 解决方法: Using pip instal 阅读全文
posted @ 2024-12-27 10:21 踩坑大王 阅读(49) 评论(0) 推荐(0) 编辑
摘要:问题场景:上传文件 调用上传文件接口,异步任务解析文件,解析中需要执行python代码,此时会出现阻塞 启动celery命令 celery -A app.celery worker -P gevent -c 1 --loglevel INFO -Q nltable 代码: import loggin 阅读全文
posted @ 2024-12-26 11:11 踩坑大王 阅读(12) 评论(0) 推荐(0) 编辑
摘要:一台服务器开了代理后,python requests请求最简单的百度网站都要很久 解决方法: import socket import urllib3 def allowed_gai_family(): return socket.AF_INET urllib3.util.connection.al 阅读全文
posted @ 2024-12-05 22:07 踩坑大王 阅读(50) 评论(0) 推荐(0) 编辑
摘要:git rm --cached -r .;git reset --hard;git rm .gitattributes;git reset .;git checkout . 参考:https://blog.csdn.net/fengyun089/article/details/129091023 阅读全文
posted @ 2024-11-02 22:04 踩坑大王 阅读(29) 评论(0) 推荐(0) 编辑
摘要:在项目里使用requests去请求接口出现一串二进制 如: 测试时却显示正常,使用的是另一个项目的虚拟环境(python 3.11.5) 切换到本项目中,使用本项目虚拟环境仍然乱码(python3.11.5) 在本项目中尝试切换到3.10,创建一个新的虚拟环境,并保留comment.py脚本只需要的 阅读全文
posted @ 2024-11-01 01:36 踩坑大王 阅读(9) 评论(0) 推荐(0) 编辑
摘要:原因: 当前项目存在resources文件夹 参考: https://github.com/jupyter/notebook/issues/5817 解决方法: 重命名resources 注释process_collector.py和notebookapp.py中涉及到resouce的代码 由于找不 阅读全文
posted @ 2024-10-08 17:12 踩坑大王 阅读(83) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash ll .venv bash entrypoint.sh执行出现错误 entrypoint.sh: line 2: ll: command not found 而使用source entrypoint.sh却没问题 原因:权限问题 阅读全文
posted @ 2024-09-28 18:34 踩坑大王 阅读(18) 评论(0) 推荐(0) 编辑
摘要:方法一: vim a.sh :set ff=unix 阅读全文
posted @ 2024-09-28 18:31 踩坑大王 阅读(4) 评论(0) 推荐(0) 编辑
摘要:目录使用nohup挂载使用pm2挂载设置share link为永久 使用nohup挂载 encrypoint.sh source /data/develop/hjy/LLaMA-Factory/.venv/bin/activate llamafactory-cli webui (base) $ so 阅读全文
posted @ 2024-09-28 17:34 踩坑大王 阅读(263) 评论(0) 推荐(0) 编辑
摘要:在创建新用户并切换后 sudo useradd newuser sudo passwd xxx su newuser 命令行变成如下: 原因 创建用户的时候未指定shell类型,默认的shell为/bin/sh,而不是/bin/bash。 查询发现是/bin/sh而不是/bin/bash 解决方法 阅读全文
posted @ 2024-06-24 18:12 踩坑大王 阅读(122) 评论(0) 推荐(0) 编辑
摘要:创建虚拟环境并激活后 <br />condacreatentensorflowpython=3.9<br/> conda activate tensorflow<br /> 使用下面指令安装tensorflow时显示"Solving environment :failed with 阅读全文
posted @ 2024-03-29 23:54 踩坑大王 阅读(65) 评论(0) 推荐(0) 编辑

more_horiz
keyboard_arrow_up light_mode palette
选择主题
点击右上角即可分享
微信分享提示