Skip to content

Poetry not using the correct python version #7075

@shanewazabbas

Description

@shanewazabbas
> poetry shell
The currently activated Python version 3.9.14 is not supported by the project (>=3.10.1,<3.11).
Trying to find and use a compatible version. 
Using python3 (3.10.7)
Skipping virtualenv creation, as specified in config file.
Spawning shell within /Users/shaneabbas/.pyenv/versions/3.9.14

It says using 3.10.7 but the last line says otherwise.
If I do poetry install, it chooses to still use 3.9.14

Keep in mind that I'm using pyenv and local .python-version file

> python --version
Python 3.10.7
> cat .python-version 
3.10.7
> poetry env info

Virtualenv
Python:         3.9.14
Implementation: CPython
Path:           NA
Executable:     NA

System
Platform:   darwin
OS:         posix
Python:     3.9.14
Path:       /Users/shaneabbas/.pyenv/versions/3.9.14
Executable: /Users/shaneabbas/.pyenv/versions/3.9.14/bin/python3.9

There is nothing crazy going on here on my end. How are we not able to handle just having the current python version be respected for poetry? I'm on a mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expectedstatus/triageThis issue needs to be triagedstatus/waiting-on-responseWaiting on response from author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions