How do I tell poetry to use python 2.7?
See original GitHub issueThe README indicates that poetry supports older versions of python, but when I run poetry install
in a fresh project directory it’s using python 3 (the same one that poetry itself is running on). I can’t find an option to specify the python version to use. I specified python 2.7 as a dependency in my pyproject.toml.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Introduction | Documentation | Poetry - Python dependency ...
Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and...
Read more >Poetry doesn't use the correct version of Python - Stack Overflow
It seems that Poetry defaults back to the system version of Python. How do I change this so that it uses the version...
Read more >poetry - PyPI
Poetry helps you declare, manage and install dependencies of Python projects, ensuring you have the right stack everywhere. Poetry Install.
Read more >Dependency Management With Python Poetry
When your Python project relies on external packages, you need to make sure you're using the right version of each package.
Read more >Python packaging and dependency management using poetry
Poetry requires Python 2.7 or 3.4+. It is multi-platform and the goal is to make it work equally well on different operating systems....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@radix Just to keep you posted.
The Python 2.7 support is coming along quite well. The only part remaining is the packaging/building part the rest is already supported (project creation and dependency installation).
So, expect full Python 2.7 support sometime next week 😃
Supporting poetry running on python 2.7 would be excellent. It would mirror how cargo works as well. Do you have any list of work that needs to be done that maybe I could help with?
Just for argument’s sake, I think the answer to your first question is very clear: because it would enable more use cases. I personally never want to activate a virtualenv again in my life. It’s one of the worst parts of Python development. I never even want to be at risk of mutating my virtualenv in a way that isn’t tracked in a .toml or .lock file. So I want to make sure I use a tool that can take care of it entirely for me and isolate me from the environment.
However, the suggestion of having poetry actually run on python 2.7 would be a good alternative to supporting arguments like --two. So I’m happy as long as that’s eventually possible 😃