Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 281ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
u

uv

Recently created Least recently created Recently updated Least recently updated

timmy / 使用 UV 管理 Python 環境

Last active 5 hours ago package-management python uv virtual-environment

透過 UV 工具創建和管理 Python 虛擬環境,輕鬆安裝套件、更新依賴,並執行腳本。

1 0 0 2
1 # 從 astral.sh 抓安裝腳本,直接裝 uv 工具,簡單又快速
2 curl -Ls https://astral.sh/uv/install.sh | sh
3
4 # 或者用 brew 安裝,Mac 用戶的最愛
5 brew install uv
6
7 # 創一個新的虛擬環境,隔離專案依賴,免得搞亂
8 uv venv
9
10 # 創一個新的虛擬環境,隔離專案依賴,免得搞亂