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

This version

3.5.1

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.1.tar.gz (71.0 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.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

uvenv-3.5.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

uvenv-3.5.1-py3-none-macosx_11_0_arm64.whl (5.9 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

uvenv-3.5.1-py3-none-macosx_10_12_x86_64.whl (6.2 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for uvenv-3.5.1.tar.gz
Algorithm Hash digest
SHA256 473ed6bc5d81a13100996e7c5bc9dbca73642776a9cc650ca0bbdf87a25becc5
MD5 4efc6aef4ef37438cb08e67e2d200f50
BLAKE2b-256 de22962b4f77625472ce5ad93f55de8cca55bf04421dd396847edcadacb3b8d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.5.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d45df5f1ca5856d7c72dbd378fe0f5d4f125ba420736d223133bc57c347c84fd
MD5 4e3c7381d619efa88b8e0055b794f644
BLAKE2b-256 04b98d4f55ec0d9f78b7e93826d3430061be0de9a09d1fd7e8d0c093ba6ac7d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.5.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 05c9adfddc8e5a065685fdd2d95b444887a6ec09870285e6efbc881f2c12f337
MD5 12856ca87a6e2cf95376ed9880eadee9
BLAKE2b-256 7045d474f02efb6065de2cb02b2ec107da37753d0a322de79feccb1c2dc09fc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.5.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e89f28e72dccecf0974bab3e3c896010c6aae0ad30fd822335558754822dee75
MD5 caa94e435781553636b3dbda55a8bf96
BLAKE2b-256 5f5791381f3b684ff7f2a825ebc3878ab5454ccfca27c0c7d8d15e92ef0714be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.5.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f1a3bbe080d0de84849224cd235099576cf95f0a7c9a683af73873d00ddb612e
MD5 f9ce83c955d73f3e00cd9c3d4c8de1f2
BLAKE2b-256 9af7bf0169be1c997fab3a28ef2d9b3796ed10b49bf57b19538a734d39bdd0d9

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