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


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.0.tar.gz (71.6 kB view details)

Uploaded Source

Built Distributions

uvenv-3.5.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.1 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3 macOS 11.0+ ARM64

uvenv-3.5.0-py3-none-macosx_10_12_x86_64.whl (6.7 MB view details)

Uploaded Python 3 macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for uvenv-3.5.0.tar.gz
Algorithm Hash digest
SHA256 54cc716d770a9e43b150d60d469ab499ad267769db356f45de22f701b28c0cbf
MD5 7cd9d2f18843cd8e27d931565aa3626a
BLAKE2b-256 a61dd40d6555b171878647d04ff6d06d967f18f550ccefc417562a474ee8f58f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.5.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2cdc42a20b216d53f5e75be5875299f89f9edc8fcfcc8a49d81c19b75f229ba5
MD5 60dd8b708054de9aea7d17d4ce38e89c
BLAKE2b-256 ec13a12dd444e17ad358dc3abd04ea3493e0c27a94361d97f7cdaa7c7c8cdc85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.5.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d834e22e24a11e4bf476397f6b695c9eff8bdc6af44b388261ea94afed96aed5
MD5 33fc64265668035bf152e2305d55c644
BLAKE2b-256 60602d2aa7a7b9d8e6f8684a5801a758e07ddc77786ffa7ca89d032b03d9d0f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.5.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec21dd071fc0a2076db8ffcca51a0677062c2364c56b4191cc355bafc1f05bb8
MD5 5328d2c3e2ed46f03061a743763807fa
BLAKE2b-256 fd5ec637788e81e25d0b64672a6794c419ca23866fe616c93596bba5b8eb4c05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.5.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d1b9b1b5e289984b2563789f1472354cb8259c265550d5243b4cd9e667f95a34
MD5 f4db375924322a6200bb632cef434d32
BLAKE2b-256 b1ccd8c8ddb7ee03f798eae09d181cb3d423471860495cdc0f3c96a12c9c77a4

See more details on using hashes here.

Supported by

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