Skip to main content

uvenv: pipx for uv (🦀)

Project description

uvenv: pipx for uv

Inspired by:

Note: The tool previously named uvx is now uvenv due to a naming collision with a new uv command. The new name better reflects its purpose, combining uv with venv.
You can run uvenv self migrate to move your environments and installed commands from uvx to uvenv.

Installation

  1. Install via pip (or alternatives):
    pip install uvenv  
    # or `uv install uvenv`, `pipx install uvenv`
    

Note: Ubuntu 24.04+ does not allow global installation via pip by default. See docs/ubuntu_2404.md if you encounter externally-managed-environment errors.

  1. Optional (for bash users):

    uvenv setup
    

    This installs the following features:

  • Ensures ~/.local/bin/ is added to your PATH, so commands can be found (unless --skip-ensurepath). Can also be activated via uvenv ensurepath
  • Enables tab completion for uvenv (unless --skip-completions). Can also be enabled via uvenv completions --install.
  • Enables uvenv activate (unless --skip-activate) to activate uvenv-managed virtualenvs from your shell

Usage

uvenv

Run uvenv without any arguments to see all possible subcommands.

Platform Considerations

  • Rust-Powered Performance (uvenv 2.0): Starting from version 2.0, uvenv leverages Rust for improved performance and compatibility with uv.
  • Prebuilt Binaries: Currently, prebuilt binaries are available for x86_64 (amd64) and aarch64 (ARM64) on Linux, as well as Intel (x86_64) and Apple Silicon (ARM64) on macOS.
  • Other Platforms: If you're on a different platform, you can still use uvx 1.x, which is written in pure Python. Find it at robinvandernoord/uvx.
  • Alternatively, you can Compile for Your Platform:
    • Install the Rust toolchain:
      curl https://sh.rustup.rs -sSf | sh
      
    • Clone the uvenv repo and navigate to it:
      git clone https://github.com/robinvandernoord/uvenv.git
      cd uvenv
      
    • Set up a virtual environment (choose Python or uv):
      python -m venv venv  # or `uv venv venv --seed`
      source venv/bin/activate
      
    • Install Maturin (Python with Rust package builder):
      pip install maturin  # or `uv pip install maturin`
      
    • Compile and install the uvenv binary:
      maturin develop
      
    • Now you can use uvenv:
      ./venv/bin/uvenv
      

For additional details on building and distribution, refer to maturin documentation.

License

uvenv is distributed under the terms of the MIT license.

Changelog

See CHANGELOG.md on GitHub

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uvenv-3.5.3.tar.gz (73.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

uvenv-3.5.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

uvenv-3.5.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

uvenv-3.5.3-py3-none-macosx_11_0_arm64.whl (6.3 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

uvenv-3.5.3-py3-none-macosx_10_12_x86_64.whl (6.5 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file uvenv-3.5.3.tar.gz.

File metadata

  • Download URL: uvenv-3.5.3.tar.gz
  • Upload date:
  • Size: 73.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.7.0

File hashes

Hashes for uvenv-3.5.3.tar.gz
Algorithm Hash digest
SHA256 d41db1e4b03ebe6cd5e194a6b290c632a4a3767b8929893ab4c761675ec2370e
MD5 32aac3ea1cfbc93361ba427d993c522c
BLAKE2b-256 2db9d944d9c4e51d044c26e5c72446fbdee878f8b0e8e661b21be6156256af70

See more details on using hashes here.

File details

Details for the file uvenv-3.5.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for uvenv-3.5.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 334be71635aca6cb8ad36d0784547fb7cd25b78ef543f89f8e5f13f61884d19a
MD5 96fe38d981287a03dc63be2646c83b5c
BLAKE2b-256 c4e245fe38fdd3218c73a81e430c843d655215f4d757e92c2642fbcd4b71c285

See more details on using hashes here.

File details

Details for the file uvenv-3.5.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for uvenv-3.5.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 479749ee0236dd9bc472dfea38a5153f3279499aafb9cabc663695e907ff3850
MD5 569b0a598299d2dcb5a56fbbfe781e4d
BLAKE2b-256 4d4acaadb2f7bd6a81580a1dbc99222e0e7bcdc14462ec3c40623faef9d47125

See more details on using hashes here.

File details

Details for the file uvenv-3.5.3-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for uvenv-3.5.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9aa361fc5dd66e93f6920af75bfa94c3932898de9487e7ebbbd0b9947c66fc38
MD5 70530c5f6d681ccd065c874dd4dfb133
BLAKE2b-256 96b543dd56cc31580b6e06a94798a58bc45394e4bf6f7fdb3477c2317742e881

See more details on using hashes here.

File details

Details for the file uvenv-3.5.3-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for uvenv-3.5.3-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 64f3108fe866ea299e78631b15f724a7c2f1305623a7546fcc444cb767b1e794
MD5 95c51b9b5da56fdf1a778a3497e55ca3
BLAKE2b-256 8475f72516e5c71480fa8f54ceb539d7c3dd7bd40648e5c3ca5ad84aee784ede

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page