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.6.3.tar.gz (78.5 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.6.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

uvenv-3.6.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

uvenv-3.6.3-py3-none-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

uvenv-3.6.3-py3-none-macosx_10_12_x86_64.whl (4.0 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for uvenv-3.6.3.tar.gz
Algorithm Hash digest
SHA256 d9906d4209d7216aa5a40a014f4f5b100434f6c3948128c9985e26a6d569d326
MD5 67e98ed912ba27e62677fa0874c80e3c
BLAKE2b-256 b13d501f5bd264b74137c01d11db27e27946b7cbfbe08cc00be5acb22e8d375c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.6.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c2b3525041f719f91b02c2121e3ca935c74590a8ba8ff39e6a82863bd8166cc4
MD5 8fa4ad1abc41b7ef497d29cffe12483a
BLAKE2b-256 894e5e53a34fca1a681a4c67a9a13d9b2195154361fc272fe18a9d2052f68585

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.6.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 075aafc995b5576e1a35a40bed5ce8450b5475789e1dde323ba91a68885c5114
MD5 cb0575ef7985fcfeda2d5f9d66cf26b0
BLAKE2b-256 79f8adefc8691997060d9fb3f1603a1151d5582947c55bde91f68b6f1b0d7eb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.6.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 440dc2593a585fe413a6adbc3cfc35764d090e3ca63fd9031d0fda0add7ebde7
MD5 d5cc90bb659535a95179fc3acde6e749
BLAKE2b-256 4c41202e1618917a0e4e67fec9a7f215c944b0be143a0c276eab211839dc7cf3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.6.3-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0a6f5d3bf950c44a643788915d78f25e3501371626f9540b41acb28ef9f7003a
MD5 780f9dd7f9b79ca5cd6c040ede06d91a
BLAKE2b-256 dd906dfded70006b9f5adc0dbd890697bdf5ad8d12378a8f6bbc4818f3172cb6

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