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.0.tar.gz (73.6 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.0-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.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

uvenv-3.6.0-py3-none-macosx_11_0_arm64.whl (3.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

uvenv-3.6.0-py3-none-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for uvenv-3.6.0.tar.gz
Algorithm Hash digest
SHA256 479d1eaab4a09a82bf16adc1785dbdd576e453ea32a0cc6dd737d37d65dabe5c
MD5 2849507d3d30cbed8cad4ea3c48e379f
BLAKE2b-256 9eb9e5682be531d311c75bf46d50ee59840707fbb75d3bbef0cec85d3a76877b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.6.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4f17bdb00e9f765c5b80e576a2e913fd23cc29d602e2fc5e6d393bb802a4eb77
MD5 7c0409bbbe85116c7a56b98353ff8a81
BLAKE2b-256 7f06417164a69ef2c4bda9cf61ff6e3c60f9f23d87f010e4543b4368bf90ee05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.6.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d0c689cf447ecedd0fc44f747dc1be850d86643bfe16610db6bdbd8167533d81
MD5 d66eca020d5c57788dd35a04b1b320a9
BLAKE2b-256 7980d2a82eaf36ab6c19b84e6b18f01544385bd48fc9a04bc2690fb1b514657f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.6.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e912099179ba9ac152e6b555f3c99492c63188d4de35850cd3db43f1b279dfdc
MD5 2ef63b9250f878cd48c9bc5d782327bd
BLAKE2b-256 81f326bdcb91acddeb3a568552aaf747795854d9d992ba3f50dec84775ee2505

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uvenv-3.6.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6563233fe2263cf9602816c612e6f70f7a49fcd1b9f7b5d196d0a7e2175ad629
MD5 7dafe95d746d52dc4f7b37ba21bab94a
BLAKE2b-256 6d81362ddd09b5695389d35584a70cbfbd7263971bad394a9dd2514ecbb1c822

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