question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Choose the host Python version used when running poetry installed with 'get-poetry.py'

See original GitHub issue

Follow up to this issue:

Since #2683 a EOL warning message is displayed when poetry runs under a Python interpreter that has reached its end of life (EOL), for example Python 2.7, and 3.5. Fair enough. But when using a poetry installation initiated with get-poetry.py it does not seem possible to control which Python interpreter is being used. Which leads to the EOL warning message being legitimately displayed but there is no straightforward way for the user to switch to a different Python version. It is not reasonable to expect from the users that they uninstall the older Python interpreters.

Related

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
sontekcommented, Jan 14, 2021

@sinoroc Yeah, I’m more of discussing this because the ergonomics around it don’t make sense to me and I would like to start recommending people use Poetry over things like pip and pipenv. So even though I know how to work around this flaw, I don’t believe its safe to recommend use of the software when it’ll be something MAJORITY of users hit.

Most systems aren’t defaulting to python3 for “python” and having to work around it is a weird limitation with many easy fixes.

1reaction
finswimmercommented, Aug 3, 2021

The get-poetry.py script is now deprecated in favor of install-poetry.py, which will bind poetry to the python version it was installed with. See https://python-poetry.org/blog/announcing-poetry-1.2.0a1/#deprecation-of-the-get-poetrypy-script

As a downside the “pyenv workflow” no longer works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Announcing Poetry 1.2.0 | Blog
Poetry 1.2 drops runtime support for Python 2.7, 3.5 and 3.6. Running Poetry on these versions is now untested and unsupported. Note. This ......
Read more >
poetry - PyPI
Poetry : Python packaging and dependency management made easy. Stable Version Pre-release Version Python Versions Download Stats Discord.
Read more >
Integrating Python Poetry with Docker - Stack Overflow
So, I use pip install 'poetry==$POETRY_VERSION' . As you can see, I still recommend to pin your version. Also, pin this version in...
Read more >
How to Set Up Python and Poetry
Once pyenv is installed, you can choose between any Python versions to install as simple as in ... .com/python-poetry/poetry/master/get-poetry.py | python -.
Read more >
A Guide to Python Environment, Dependency and Package ...
You can install conda packages by running conda install package_name in your ... .com/python-poetry/poetry/master/get-poetry.py | python -.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found