Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Can not install Poetry on Ubuntu 20.04

未关闭
#103 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
tooling

调研方向

在 Ubuntu 20.04 上使用 Python 3.8 重现 curl -sSL https://install.python-poetry.org | python3 - 命令,然后通过 maininstallmake_env 跟踪安装程序的 traceback。调查捆绑的 virtualenv 无法加载 virtualenv.activation.xonsh 的原因;当 Poetry 能够在所报告的环境中成功安装且不再出现此 ModuleNotFoundError 时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Python 3.8

$ curl -sSL https://install.python-poetry.org | python3 -

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:

/home/.../.local/bin

You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.

Installing Poetry (1.3.1): Creating environment
Poetry installation failed.
See /home/.../projects/poetry-installer-error-333ykixc.log for error logs.
$ cat /home/.../projects/poetry-installer-error-333ykixc.log

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/tmp/poetry-installerowd8qj5i/virtualenv.pyz/__main__.py", line 167, in <module>
  File "/tmp/poetry-installerowd8qj5i/virtualenv.pyz/__main__.py", line 163, in run
  File "/tmp/poetry-installerowd8qj5i/virtualenv.pyz/virtualenv/__main__.py", line 16, in run
  File "/tmp/poetry-installerowd8qj5i/virtualenv.pyz/virtualenv/run/__init__.py", line 28, in cli_run
  File "/tmp/poetry-installerowd8qj5i/virtualenv.pyz/virtualenv/run/__init__.py", line 46, in session_via_cli
  File "/tmp/poetry-installerowd8qj5i/virtualenv.pyz/virtualenv/run/__init__.py", line 74, in build_parser
  File "/tmp/poetry-installerowd8qj5i/virtualenv.pyz/virtualenv/run/plugin/activators.py", line 11, in __init__
  File "/tmp/poetry-installerowd8qj5i/virtualenv.pyz/virtualenv/run/plugin/base.py", line 44, in options
  File "/tmp/poetry-installerowd8qj5i/virtualenv.pyz/virtualenv/run/plugin/base.py", line 23, in entry_points_for
  File "/tmp/poetry-installerowd8qj5i/virtualenv.pyz/virtualenv/run/plugin/base.py", line 23, in <genexpr>
  File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'virtualenv.activation.xonsh'

Traceback:

  File "<stdin>", line 919, in main
  File "<stdin>", line 550, in run
  File "<stdin>", line 571, in install
  File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "<stdin>", line 643, in make_env
  File "<stdin>", line 629, in make_env
  File "<stdin>", line 333, in make
  File "<stdin>", line 357, in run
主要语言
Python
星标
255
派生
65
平均合并
2 小时 48 分钟
30 天内合并 PR
1

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

python-poetry/install.python-poetry.org 的其他 Issue

查看 python-poetry/install.python-poetry.org 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。