All New

user:thomas gists created by user

title:mygist gists with given title

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

Login


All New Login

All gists matching topic uv

Recently created
Least recently created
Recently updated
Least recently updated

timmy / 使用 UV 管理 Python 環境

1 likes
0 forks
2 files
Last active 6 months ago
透過 UV 工具創建和管理 Python 虛擬環境,輕鬆安裝套件、更新依賴,並執行腳本。
package-management python uv virtual-environment
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 # 創一個新的虛擬環境,隔離專案依賴,免得搞亂
Newer Older

Powered by Opengist ⋅ Load: 24ms⋅

日本語
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文