Skip to content

New uv version causes error "A virtual environment already exists at" #34

Description

@konkerama

New version of uv cause error:

Installing uv.. installation_directory=/opt/actions-runner/_work/_actions/kishaningithub/setup-python-amazon-linux/v1/.setup-python-amazon-linux/uv
downloading uv 0.11.11 aarch64-unknown-linux-gnu
installing to /opt/actions-runner/_work/_actions/kishaningithub/setup-python-amazon-linux/v1/.setup-python-amazon-linux/uv
  uv
  uvx
everything's installed!
Run desired_python_version=$(${GITHUB_ACTION_PATH}/find-desired-python-version.sh "3.13" ".python-version")
desired_python_version=3.13
Run desired_python_version="3.13"
installation_directory=/home/ec2-user/.setup-python-amazon-linux/.python-versions/3.13
Run installation_directory="/home/ec2-user/.setup-python-amazon-linux/.python-versions/3.13"
Using CPython 3.13.13
Creating virtual environment at: /home/ec2-user/.setup-python-amazon-linux/.python-versions/3.13
error: Failed to create virtual environment
  Caused by: A virtual environment already exists at `/home/ec2-user/.setup-python-amazon-linux/.python-versions/3.13`. Use `--clear` to replace it

This can be fixed by adding the --clear flag, I have opened a pr here for this: #33

Activity

  1. kishaningithub commented on May 8, 2026

    @kishaningithub
    Owner

    Have released a new version with your fix 1.1.2 Thanks for your contribution!

  2. kishaningithub commented on May 8, 2026

    @kishaningithub
    Owner

    Give it a spin and let me know

  3. konkerama commented on May 8, 2026

    @konkerama
    ContributorAuthor

    @kishaningithub thanks a lot, this seems to be working fine now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions