Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.61 KB

README.md

File metadata and controls

59 lines (41 loc) · 1.61 KB

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