コンテンツにスキップ

uvコマンド早見表

10. 参考:よく使う uv コマンド早見表

Section titled “10. 参考:よく使う uv コマンド早見表”
Terminal window
# バージョン表示
uv --version
# Python をインストール/一覧
uv python install 3.11
uv python list
# 仮想環境
uv venv .venv -p 3.11
source .venv/bin/activate # macOS/Linux
.venv\Scripts\Activate.ps1 # Windows PowerShell
# パッケージ(requirements 方式)
uv pip install -r requirements.txt
uv pip install streamlit
# パッケージ(pyproject 方式)
uv init
uv add streamlit pandas numpy
# 実行
uv run streamlit run app.py
# または
uvx streamlit run app.py