当前位置: 首页 > news >正文

Python包管理工具uv 国内源配置

macOS 下 .config/uv/uv.toml内

pip源

[[index]]
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/"
default = true#uv python install 下载源配置无效,需要在项目里配置
# python-install-mirror = "https://mirror.nju.edu.cn/github-release/indygreg/python-build-standalone"

uv python install
源最开始是 我永远喜欢墨小菊找到的

需要在项目的pyproject.toml里配置。如:
**文件: pyproject.toml** 
[project]
name = "test"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = "~=3.10"
dependencies = ["flask>=3.1.1","requests>=2.32.3",
]
[tool.uv]
#python-install-mirror = "https://mirror.nju.edu.cn/github-release/indygreg/python-build-standalone"  南京大学
python-install-mirror = "https://registry.npmmirror.com/-/binary/python-build-standalone/"   # 阿里源**文件:.python-version  内版本对应**
3.10执行uv sync  会自动把Python=3.10下载在pyproject.toml同目录下可以执行uv python install 3.9 3.10 3.11 3.12 等多版本下载,python-install-mirror在这可以生效
http://www.dtcms.com/a/205313.html

相关文章:

  • XCOSnTh-fatfsShell
  • 使用Gemini, LangChain, Gradio打造一个书籍推荐系统 (第一部分)
  • 友思特方案 | 光示原形:高精度晶圆缺陷检测的高功率UVLED方案
  • SOC-ESP32S3部分:4-参数配置可视化menuconfig
  • 如何通过外链建设提升Shopify独立站的权重和排名
  • 第9.1讲、Tiny Encoder Transformer:极简文本分类与注意力可视化实战
  • 23种经典设计模式(GoF设计模式)
  • 【spring】spring学习系列之十一:spring的事件监听
  • 《会计研究》顶刊数据复刻!上市公司环境规制压力数据及研究价值
  • Android多线程下载文件拆解:原理、实现与优化
  • 2570. 合并两个二维数组 - 求和法
  • 每日leetcode
  • 手搓四人麻将程序
  • 如何应对kaggle离线安装环境?
  • 5月21日星期三今日早报简报微语报早读
  • Cross-Mix Monitoring for Medical Image Segmentation With Limited Supervision
  • 【C语言】复习~数组和指针
  • 云DNS智能解析:实现多区域部署
  • SpringBoot JAR 启动原理
  • 【Linux高级全栈开发】2.2.1 Linux服务器百万并发实现2.2.2 Posix API与网络协议栈
  • Mysql差异备份与恢复
  • 小黑黑prompt表述短语积累1
  • YOLO训练输入尺寸代表什么 --input_width 和 --input_height 参数
  • QGIS3.40.X使用OSM获取数据
  • 实践大模型提示工程(Prompt Engineering)
  • 民锋视角下的多因子金融分析模型实践
  • 电商项目-商品微服务-规格参数管理,分类与品牌管理需求分析
  • Spring AOP拦截失败
  • Spring IOCDI————(2)
  • 如何提灯验车