随笔分类 -  Python学习

1 2 3 4 5 ··· 7 下一页
摘要:Github地址 https://github.com/astral-sh/uv/tree/main 文档地址 https://docs.astral.sh/uv/#highlights uv是一个用 Rust 编写的极其快速的 Python 包和项目管理工具 环境查看 系统环境 # cat /et 阅读全文
posted @ 2025-10-11 14:34 minseo 阅读(43) 评论(0) 推荐(0)
摘要:图片怎么标注参考 https://www.cnblogs.com/minseo/p/18549804 下载 从github下载代码,或压缩包 # git clone https://github.com/LabelMe/labelme 转换 示例文件在以下路径 # labelme-main\exam 阅读全文
posted @ 2024-11-16 21:30 minseo 阅读(140) 评论(0) 推荐(0)
摘要:简介 labelme是使用python写的基于QT的跨平台图像标注工具,可用来标注分类、检测、分割、关键点等常见的视觉任务,支持VOC格式和COCO等的导出,代码简单易读,是非常利于上手的良心工具. 安装环境 Windows 11家庭版 conda 安装labelme 使用conda创建虚拟环境 # 阅读全文
posted @ 2024-11-16 21:01 minseo 阅读(4272) 评论(0) 推荐(0)
摘要:参考 https://blog.csdn.net/engchina/article/details/140892356 引言 2024年8月1日,blackforestlabs.ai发布了 FLUX.1 模型套件。 FLUX.1 文本到图像模型套件,该套件定义了文本到图像合成的图像细节、提示依从性、 阅读全文
posted @ 2024-10-29 16:12 minseo 阅读(1284) 评论(0) 推荐(0)
摘要:pip下载模块超时 提示如下 HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Read timed out 解决办法 增加超时参数把超时时间设置长一点 --default-timeout=100 h 完整命令如下 注意 阅读全文
posted @ 2024-03-19 11:59 minseo 阅读(97) 评论(0) 推荐(0)
摘要:参考 https://blog.csdn.net/m0_46807718/article/details/131419124 阅读全文
posted @ 2023-12-15 11:39 minseo 阅读(14) 评论(0) 推荐(0)
摘要:Windows使用Vscode编写Python代码默认使用系统手动安装的设置在环境变量的Python解释器,如果需要修改称虚拟解释器conda则可以使用以下方法 软件中央上部选择"显示并运行命令" Python:选择解释器 选择需要的解释器 阅读全文
posted @ 2023-11-21 17:57 minseo 阅读(1009) 评论(0) 推荐(0)
摘要:环境查看 # cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) # uname -a Linux docker 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UT 阅读全文
posted @ 2023-11-08 16:32 minseo 阅读(87) 评论(0) 推荐(0)
摘要:参考:https://zhuanlan.zhihu.com/p/425678081 Python logging模块定了为应用程序和库实现灵活的事件日志记录的函数和类。 下面是一个示例,安装时间格式记录日志到文件 import logging def test_logging(): logging. 阅读全文
posted @ 2023-09-27 11:38 minseo 阅读(33) 评论(0) 推荐(0)
摘要:### 添加虚拟解释器 pycharm左上角File-Settings ![image](https://img2023.cnblogs.com/blog/1144139/202308/1144139-20230828162523823-1037231678.png) 增加解释器 ![image]( 阅读全文
posted @ 2023-08-28 16:28 minseo 阅读(212) 评论(0) 推荐(0)
摘要:以下代码演示Python怎么从网络下载一个文件至本地并保存在当前文件夹download import os import requests from urllib.parse import urlparse def download_file(url): response = requests.ge 阅读全文
posted @ 2023-08-24 17:37 minseo 阅读(1893) 评论(0) 推荐(0)
摘要:参考:https://zhuanlan.zhihu.com/p/348120084 下载Anaconda 下载地址 https://www.anaconda.com/ https://repo.anaconda.com/archive/Anaconda3-2023.07-2-Windows-x86_ 阅读全文
posted @ 2023-08-14 18:01 minseo 阅读(260) 评论(0) 推荐(0)
摘要:Windows11安装python模块transformers报错,报错信息如下 ``` ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\274 阅读全文
posted @ 2023-08-10 14:26 minseo 阅读(1872) 评论(0) 推荐(0)
摘要:需求: 1. 使用fastapi搭建一个站点 2. 使用MySQL存储用户名和密码,用户名为明文,密码为密文 3. 用户首页需要用户登录之后才能访问,如果未登录访问首页则跳转登录页面 ### 一,使用fastapi搭建一个无需验证的首页 目录结构如下 ![image](https://img2023 阅读全文
posted @ 2023-07-22 16:50 minseo 阅读(374) 评论(0) 推荐(0)
摘要:本文参考 https://blog.csdn.net/qq_20105831/article/details/89361472 使用pip安装python-ldap报错,报错信息如下 In file included from Modules/LDAPObject.c:8:0: Modules/co 阅读全文
posted @ 2022-04-02 12:22 minseo 阅读(427) 评论(0) 推荐(0)
摘要:参考文章: https://zhuanlan.zhihu.com/p/362808034 NOAA全球气象数据下载地址:https://www.ncei.noaa.gov/data/global-summary-of-the-day/archive/ 气象数据字段属性说明:https://www.n 阅读全文
posted @ 2021-12-29 17:53 minseo 阅读(5038) 评论(4) 推荐(3)
摘要:使用Python爬虫去天气预报网站爬取天气数据存储至MySQL然后使用pyecharts实现绘图 本次代码可以在gitee下载https://gitee.com/liuyueming/weatherSpider.git 一,环境查看 Python版本 C:\Users\liuym\Desktop\w 阅读全文
posted @ 2021-12-23 14:17 minseo 阅读(1393) 评论(0) 推荐(1)
摘要:参考官方文档:https://docs.python.org/zh-cn/3.7/library/inspect.html inspect inspect 模块提供了一些有用的函数帮助获取对象的信息,例如模块、类、方法、函数、回溯、帧对象以及代码对象。例如它可以帮助你检查类的内容,获取某个方法的源代 阅读全文
posted @ 2021-11-30 10:39 minseo 阅读(3994) 评论(0) 推荐(1)
摘要:Windows版本Vs Code在调试时Python程序时出现错误,无法打开XXX文件是目录 如下图所示 无法加载源“<attrs generated eq attr._make._CountingAttr>”: Source unavailable。 这种错误一般出现在加载模块的时候,例如 fro 阅读全文
posted @ 2021-11-30 09:23 minseo 阅读(2031) 评论(0) 推荐(0)
摘要:在上一篇博文介绍了MySQL数据库取得pymysql的使用,参考:https://www.cnblogs.com/minseo/p/15597428.html 本文介绍异步MySQL异步驱动aiomysql的使用 1,安装异步模块 如果没有模块则先使用pip安装模块 pip3 install asy 阅读全文
posted @ 2021-11-24 16:05 minseo 阅读(1900) 评论(0) 推荐(0)

1 2 3 4 5 ··· 7 下一页