Linux command
uv-venv 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create virtual environment
uv venv
Create with specific Python
uv venv --python [3.11]
Create in specific directory
uv venv [path]
Create with seed packages
uv venv --seed
说明
uv venv creates Python virtual environments. Creates isolated environments for package installation. Much faster than python -m venv or virtualenv.
参数
- --python _version_
- Python version.
- --seed
- Install pip and setuptools.
- --system-site-packages
- Access system packages.
- --prompt _name_
- Custom prompt.
FAQ
What is the uv-venv command used for?
uv venv creates Python virtual environments. Creates isolated environments for package installation. Much faster than python -m venv or virtualenv.
How do I run a basic uv-venv example?
Run `uv venv` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --python _version_ do in uv-venv?
Python version.