You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a script that create a new venv, possibly removing an existing venv if necessary. I thought the --force option would help with this.
As you may see below the command pdm venv create -n pdmtest --force will create the venv the first time, fail to do so the second time, succeed the third time etc etc.
❯ pdm venv list
Virtualenvs created with this project:
❯ pdm venv create -n pdmtest --force
Virtualenv /Users/mjm/Library/Application Support/pdm/venvs/PDMTest-VrAcEGgJ-pdmtest is created successfully
❯ pdm venv list
Virtualenvs created with this project:
* pdmtest: /Users/mjm/Library/Application Support/pdm/venvs/PDMTest-VrAcEGgJ-pdmtest
❯ pdm venv create -n pdmtest --force
Cleaning existing target directory /Users/mjm/Library/Application Support/pdm/venvs/PDMTest-VrAcEGgJ-pdmtest
[VirtualenvCreateError]: Command '['/usr/local/Cellar/pdm/2.12.3/libexec/bin/python', '-m', 'virtualenv', '/Users/mjm/Library/Application
Support/pdm/venvs/PDMTest-VrAcEGgJ-pdmtest', '-p', '/Users/mjm/Library/Application Support/pdm/venvs/PDMTest-VrAcEGgJ-pdmtest/bin/python',
'--prompt=pdmtest-3.12', '--no-pip', '--no-setuptools', '--no-wheel']' returned non-zero exit status 1.
❯ pdm venv list
Virtualenvs created with this project:
❯ pdm venv create -n pdmtest --force
Virtualenv /Users/mjm/Library/Application Support/pdm/venvs/PDMTest-VrAcEGgJ-pdmtest is created successfully
The text was updated successfully, but these errors were encountered:
I want to create a script that create a new venv, possibly removing an existing venv if necessary. I thought the --force option would help with this.
As you may see below the command
pdm venv create -n pdmtest --force
will create the venv the first time, fail to do so the second time, succeed the third time etc etc.The text was updated successfully, but these errors were encountered: