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.4.tar.gz (78.2 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.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

uvenv-3.6.4-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.4.tar.gz.

File metadata

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

File hashes

Hashes for uvenv-3.6.4.tar.gz
Algorithm Hash digest
SHA256 8902906536b29345fc2dbc4c6a58f7b6acda7ac3c0c675f88dd9d88fafd23623
MD5 bbc1e371541b30b6ffcdb8e0abf4e2ca
BLAKE2b-256 eebaa1a5a7e3fe8c973195bc9305f40794dea96e281f3d14d418338469be17ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.6.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0a075b048475a2239043e4873df82cd1a00828f1a72708ddb8076f3c0c84000f
MD5 43444cdd3885c2c2655b560452324864
BLAKE2b-256 10680a3cd9bc22171e983918a5bee535dcebe7e760f3618a307486b9eaca6a88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.6.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b137821d141ec101931204654c888537eb4f99c585aff641768bccb1e4fa36c3
MD5 679a924ba70aea4a6e1d2e494370972d
BLAKE2b-256 a424c7a9c6bb2031961fb0b76f39df9080b391d00fe88a66a26a75aa13153e7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.6.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 90a70f1ca50ab57f4f2c49a3a3e3795f5cc18b16833e8b78bbf9e46f497f2eeb
MD5 d0ea93b920bb565f356dd3f34ba14d28
BLAKE2b-256 1f7d59762b84256b567a7d1b91807b03c9c62a8fd55755d305816cf4d1a93d5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.6.4-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bec5f13763f4b009ce1de0bcf367ec5ccc57bdb13d8bde5eb21e4a90a4573a28
MD5 f38a3794765ae8013373f97ff80310c1
BLAKE2b-256 fbc8f7f3bec0c88f4ec246cac01b7f51c3f3781d2359a1383675159316cff799

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