Skip to content
New issue

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

Install Poetry with a specific Python version #46

Open
palfrey opened this issue Dec 4, 2024 · 0 comments
Open

Install Poetry with a specific Python version #46

palfrey opened this issue Dec 4, 2024 · 0 comments

Comments

@palfrey
Copy link

palfrey commented Dec 4, 2024

I've got a scenario where I need Poetry to have been installed using Python 3.12, because I'm using https://github.com/DavidVujic/python-polylith and that installs a Poetry plugin that I need to run under 3.12 for specific syntax reasons.

My .python-version is set to 3.12 and pyenv loads python correctly as 3.12 now, but Poetry was installed either previously to that, or as part of a different repo's .tool-versions that also wanted the same Poetry version but had a 3.11 .python-version

I mean, I can just uninstall/reinstall Poetry, but that feels inelegant and this feels like the sort of thing where I want to be able to set .tool-versions for this. Ideally I want to be able to both have 3.11 and 3.12 Poetry versions (with the same Poetry version even) installed at the same time and stuff to do the right thing based on what folder I'm in.

Any thoughts?

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

No branches or pull requests

1 participant