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



我把诗歌和pyenv结合起来做一些爱好项目。我用pyenv在一些诗歌爱好项目中创建了一些虚拟的env。出于某种原因,我删除了一些python安装,这些安装破坏了这些项目中的虚拟环境,现在诗歌不再工作了。当我开始写诗的时候,我得到了这样的信息。我使用的是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来安装和卸载

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

似乎您不小心删除了库的一些函数。试着把它删除然后重新安装。

相关内容

  • 没有找到相关文章

最新更新