Skip to content

error: No interpreter found --  #9088

@EdmundsEcho

Description

@EdmundsEcho

I am new to uv.

The problem

When I tried to initialize a new project, I received the following:

❯ uv init TestProject --verbose
DEBUG uv 0.5.1 (f399a5271 2024-11-08)
DEBUG Reading Python requests from version file at `/Users/edmund/Downloads/.python-version`
DEBUG Searching for Python interpreter with executable name `3.10-dev`
DEBUG Checking for Python interpreter at executable name `3.10-dev`
error: No interpreter found for executable name `3.10-dev` in virtual environments, managed installations, or search path

The fix

Removed the .python-version present in the root folder from where I was trying to create the new project.

Longer term fix

I'm not sure if there is a better way to report the error, or dare I say use the version of python that I installed using uv. I don't know enough to have a POV.

Metadata

Metadata

Assignees

No one assigned

    Labels

    error messagesMessaging when something goes wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions