Skip to content

use uv in Windows

install

powershell
py -3 -V
# Python 3.9.0

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
uv -h

uv -V
# uv 0.1.22

venv

powershell
uv venv
.venv\Scripts\activate

start

powershell
uv pip install loguru

python main.py

uv pip uninstall loguru

requirements

powershell
uv pip freeze | uv pip compile - -o requirements.txt
uv pip install -r requirements.txt

参考

Released under the MIT License.