← 返回
效率工具 中文

UV Global

Provision and reuse a global uv environment for ad hoc Python scripts.
为临时 Python 脚本提供并重用全局 uv 环境。
guoqiao
效率工具 clawhub v0.1.2 1 版本 99964.9 Key: 无需
★ 0
Stars
📥 2,847
下载
💾 7
安装
1
版本
#global#latest#python#uv#venv#virtualenv

概述

UV Global

Create and reuse a global uv environment at ~/.uv-global so you can install Python dependencies for quick, ad hoc scripts without polluting the system interpreter.

Lightning-fast setup that keeps one shared virtual environment ready for temporary tasks.

Use this skill when the user needs Python packages (data processing, scraping, etc.) that are not preinstalled and a full project-specific environment would be overkill. Skip this if the user explicitly wants system Python or a project-local venv.

Requirements

uv available. If missing, you need either brew (macOS/Linux) or curl to install it.

Installation

bash ${baseDir}/install.sh

The script will:

  • install uv via brew (macOS/Linux) or the official curl installer if uv is absent
  • create a global uv project at ~/.uv-global
  • create a virtual environment with common packages in ~/.uv-global/.venv
  • create a few useful shims in ~/.uv-global/.venv/bin

[Optional]prepend the venv bin to your PATH so python defaults to the global env and shims are available:

export PATH=~/.uv-global/.venv/bin:$PATH

Usage

For any quick Python script that needs extra dependencies:

# install required packages into the global env
uv --project ~/.uv-global add <pkg0> <pkg1> ...

# write your code
touch script.py

# run your script using the global env
uv --project ~/.uv-global run script.py

Tips:

  • Keep scripts anywhere; the --project ~/.uv-global flag ensures they run with the global env.
  • Inspect installed packages with uv --project ~/.uv-global pip list.
  • If a task grows into a real project, switch to a project-local venv instead of this global one.

版本历史

共 1 个版本

  • v0.1.2 当前
    2026-03-28 13:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,968
ai-intelligence

MLX STT

guoqiao
基于MLX(Apple Silicon)与开源模型(默认GLM-ASR-Nano-2512)的本地语音转文本。
★ 2 📥 4,678
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 446 📥 226,466