0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

pipenv から uv に移行するためのコマンドメモ

Posted at

概要

python のパッケージ管理システム uv を使いたい。
https://docs.astral.sh/uv/
pipenv を使ってきたのでコマンドの比較をメモとして残す

コマンド比較

pipenv uv
プロジェクト作成 (任意のディレクトリで)pipenv --python 3.12 uv init <新ディレクトリ名> --python 3.12
ライブラリ追加 pipenv install numpy uv add numpy
ライブラリ削除 pipenv uninstall requests uv remove numpy
実行 pipenv run hello.py uv run main.py
requirements.txt生成 pipenv requirements > requirements.txt uv pip compile pyproject.toml -o requirements.txt
ライブラリ更新 pipenv install uv lock --upgrade
環境復元 pipenv sync uv sync
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?