python-poetry / python-poetry/install.python-poetry.org
Poetry Installation(Official Installer Script) error with Python 3.12.9 on Ubuntu 24.04
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 255
- フォーク
- 65
- 平均マージ
- 2時間 48分
- マージ済み PR(30日)
- 1
説明
I encountered an error while trying to install Poetry using Python 3.12. The installation fails with following error message:
Install Python 3.12
Run the Poetry installation: curl -sSL https://install.python-poetry.org | POETRY_HOME=/etc/poetry python3 -
The installation fails with following error message:
` Installing Poetry...
Retrieving Poetry metadata
Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will add the poetry command to Poetry's bin directory, located at:
/etc/poetry/bin
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (2.0.1)
Installing Poetry (2.0.1): Creating environment
Installing Poetry (2.0.1): An error occurred. Removing partial environment.
Poetry installation failed.
See /install/poetry-installer-error-m9digvmf.log for error logs.
Poetry installation failed. See error log for details.
Poetry installation failed. Printing error log:
/etc/poetry/venv/bin/python3: No module named ensurepip
Traceback:
File "", line 937, in main
File "", line 576, in run`
Operating System: Ubuntu 24.04
Python Version: 3.12.9
Poetry Version: 2.0.1
I suspect that there might be an issue with the Poetry installation script or its dependencies when running on Python 3.12.9.
Please let me know if you need any additional information or fixes available for this issue.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Ubuntu 24.04 上で Python 3.12.9 を使用して報告されたコマンドを再現し、その後、公式インストーラースクリプトの環境作成パスと、参照されている /install/poetry-installer-error-m9digvmf.log の出力を調査します。この環境でインストーラーが /etc/poetry/venv/bin/python3: No module named ensurepip エラーなしに正常に完了すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100