我的诗歌装置坏了,我不知道从哪里开始修复它

I have broken my poetry installation, and I don't know where to begin to fix it

我将诗歌与 pyenv 结合用于一些业余项目。我在一些诗歌爱好项目中用 pyenv 创建了一些虚拟环境。出于某种原因,我删除了其中一些 python 安装,这些安装破坏了这些项目中的 virtualenvs,现在诗歌将不再起作用。当我尝试开始写诗时收到此消息。我正在使用 Linux Mint 20.1:

/home/milkman/.poetry/lib/poetry/_vendor/py2.7/subprocess32.py:149: RuntimeWarning: The _posixsubprocess module is not being used. Child process reliability may suffer if your program uses threads.
  "program uses threads.", RuntimeWarning)
Traceback (most recent call last):
  File "/home/milkman/.poetry/bin/poetry", line 16, in <module>
    from poetry.console import main
  File "/home/milkman/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
    from .application import Application
  File "/home/milkman/.poetry/lib/poetry/console/application.py", line 7, in <module>
    from .commands.about import AboutCommand
  File "/home/milkman/.poetry/lib/poetry/console/commands/__init__.py", line 4, in <module>
    from .check import CheckCommand
  File "/home/milkman/.poetry/lib/poetry/console/commands/check.py", line 2, in <module>
    from poetry.factory import Factory
  File "/home/milkman/.poetry/lib/poetry/factory.py", line 18, in <module>
    from .repositories.pypi_repository import PyPiRepository
  File "/home/milkman/.poetry/lib/poetry/repositories/pypi_repository.py", line 33, in <module>
    from ..inspection.info import PackageInfo
  File "/home/milkman/.poetry/lib/poetry/inspection/info.py", line 25, in <module>
    from poetry.utils.env import EnvCommandError
  File "/home/milkman/.poetry/lib/poetry/utils/env.py", line 23, in <module>
    import virtualenv
  File "/home/milkman/.poetry/lib/poetry/_vendor/py2.7/virtualenv/__init__.py", line 3, in <module>
    from .run import cli_run, session_via_cli
  File "/home/milkman/.poetry/lib/poetry/_vendor/py2.7/virtualenv/run/__init__.py", line 13, in <module>
    from .plugin.activators import ActivationSelector
  File "/home/milkman/.poetry/lib/poetry/_vendor/py2.7/virtualenv/run/plugin/activators.py", line 6, in <module>
    from .base import ComponentBuilder
  File "/home/milkman/.poetry/lib/poetry/_vendor/py2.7/virtualenv/run/plugin/base.py", line 5, in <module>
    from backports.entry_points_selectable import entry_points
ImportError: No module named entry_points_selectable

我不知道从哪里开始解决这个问题。每当我尝试用诗歌命令时,我都会收到同样的信息。谁能指出我正确的方向?

谢谢!

您似乎不小心删除了库中的一些函数。尝试将其删除并重新安装。

可能是您删除了一些库文件。您可以尝试删除诗歌和您的应用程序正在使用的所有库。开始全新安装诗歌。 您可以使用pip安装和卸载。

否则就从头开始一个新项目。