Skip to content

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

License

Notifications You must be signed in to change notification settings

Slipstream-Max/vuv.sh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vuv.sh

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

Unlike uvv.This repo ONLY need is uv.

First of All

Thanks Menghuan1918 create awsome shell script.

Installation

First you need to install package manager uv.

Then run:

git clone https://github.com/Slipstream-Max/vuv.git
cd vuv
bash Install.sh

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

  • bash(Linux)
  • zsh(Linux)

Or you can download the vuv file separately and add source /path/to/vuv export VUV_VENV=/path/to/venvs to your terminal configuration.

You can modify

VUV_VENV:path to venv

VUV_DIR:path to vuv file

VUV_CONFIG:path to vuv config file (store index url for now)

in install.sh to choose different install location.

Use

use in terminal

Create a virtual environment named fastapi with Python version 3.10

vuv create -n fastapi -p 3.10

Activate the environment you just created

vuv activate fastapi

Deactivate this environment

vuv deactivate

Remove this environment

vuv remove -n fastapi

List all vuv enviroment

vuv list

Install package to current env

vuv install torch

Uninstall package from current env

vuv uninstall torch

Set default pypi index

vuv config --default-index https://pypi.tuna.tsinghua.edu.cn/simple

For more details you can refer to vuv help.

Use in VSCode

Ctrl+, open Settings.

Search python.venvFolders.

Click Add Item and input VUV_VENV path. vsc integrate

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%