/uvv

Easier use of package manager uv in the form of conda. 以conda的形式更轻松的使用包管理器uv。

Primary LanguageShellGNU General Public License v3.0GPL-3.0

uvv

Easier use of package manager uv in the form of conda.

🗺️ ENGLISH | 简体中文

It's true that using uv for python package management is many times faster than conda+pip, but it also suffers from less convenient support for multiple versions of python. So I wrote this script to simplify the process.

Installation

First you need to install package manager uv and conda (miniconda is recommended).

Where conda is to provide multiple versions of python.

Then run:

git clone https://github.com/Menghuan1918/uvv
cd uvv
git pull
sh Install.sh

Just restart your terminal. I've tested it on:

  • bash(Linux)
  • zsh(Linux)
  • git bash(windows)

gitbash zsh

Or you can download the uvv file separately and add source uvv to your terminal configuration

Use

Create a virtual environment named gpt with Python version 3.11

uvv create -n gpt -p 3.11

Activate the environment you just created

uvv activate gpt

Deactivate this environment

uvv deactivate

Remove this environment

uvv remove gpt

For more details you can refer to uvv help.

Use in VSCode

Just specify the location, e.g. the environment location for this is at /home/menghuan_go/.venv/gpt/bin/python.

image