We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pdm venv create --with-pip --with uv
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating a virtual environment --with-pip and with the uv backend fails.
--with-pip
uv
cd
I expect it to work as it does with --with-pip and the other backends (I tested only venv and virtualenv, not conda).
venv
virtualenv
conda
PDM version: 2.24.1 Python Interpreter: /tmp/pdm-venv-pip-uv/.venv/bin/python (3.13) Project Root: /tmp/pdm-venv-pip-uv Local Packages: { "implementation_name": "cpython", "implementation_version": "3.13.3", "os_name": "posix", "platform_machine": "x86_64", "platform_release": "6.14.2-300.fc42.x86_64", "platform_system": "Linux", "platform_version": "#1 SMP PREEMPT_DYNAMIC Thu Apr 10 21:50:55 UTC 2025", "python_full_version": "3.13.3", "platform_python_implementation": "CPython", "python_version": "3.13", "sys_platform": "linux" }
❯ mkdir /tmp/pdm-venv-pip-uv && cd $_ ❯ pdm venv create --with-pip --with uv INFO: Using uv is experimental and might break due to uv updates. ⠋ Creating virtualenv using uv...error: unexpected argument '/tmp/pdm-venv-pip-uv/.venv' found Usage: uv venv [OPTIONS] [PATH] For more information, try '--help'. [VirtualenvCreateError]: Command '['/home/fstra/.local/bin/uv', 'venv', '-p', '/usr/bin/python', '--prompt=pdm-venv-pip-uv-3.13', '--seed', 'pip', '/tmp/pdm-venv-pip-uv/.venv']' returned non-zero exit status 2.
No response
The text was updated successfully, but these errors were encountered:
fix: make pdm venv create --with-pip --with uv pass correct args to…
22d09da
… `uv` `uv venv create` takes a `--seed` flag with no parameters. Fixes pdm-project#3495.
6605381
Successfully merging a pull request may close this issue.
Describe the bug
Creating a virtual environment
--with-pip
and with theuv
backend fails.To reproduce
cd
to a fresh empty directorypdm venv create --with-pip --with uv
Expected Behavior
I expect it to work as it does with
--with-pip
and the other backends (I tested onlyvenv
andvirtualenv
, notconda
).Environment Information
Verbose Command Output
Additional Context
No response
Are you willing to submit a PR to fix this bug?
The text was updated successfully, but these errors were encountered: