由于错误" pkg_resources.DistributionNotFound: The 'psutil == 5.6.7' distribution was not found ",在 Ubu



我在Ubuntu 19.10上安装了GNS3软件但它不起作用。它从我运行的终端给出了这个错误

Traceback (most recent call last):
File "/ usr / local / bin / gns3", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3250, in <module>
@_call_aside
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3234, in _call_aside
f (* args, ** kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set
working_set = WorkingSet._build_master ()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 583, in _build_master
ws.require (__ requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve (parse_requirements (requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound (req, requirers)
pkg_resources.DistributionNotFound: The 'psutil == 5.6.7' distribution was not found and is required by gns3-gui

我还使用pip install psutil == 5.6.7命令安装了psutil == 5.6.7。输出为:Requirement already satisfied: psutil == 5.6.7 in /usr/local/lib/python2.7/dist-packages (5.6.7)

你认为问题出在哪里?

已解决

我正在写一些步骤,如果有人以后遇到这个问题,他应该使用它。。。

首先,我用命令apt install python3-pip安装了pip3

然后我用pip3 install psutil命令安装了psutil

然后它写道,gns3需要这些

gns3-server 2.2.15 requires aiofiles == 0.5.0, which is not installed.
gns3-server 2.2.15 requires aiohttp == 3.6.2, which is not installed.
gns3-server 2.2.15 requires aiohttp-cors == 0.7.0, which is not installed.
gns3-server 2.2.15 requires async-timeout == 3.0.1, which is not installed.
gns3-server 2.2.15 requires Jinja2> = 2.7.3, which is not installed.
gns3-server 2.2.15 requires jsonschema == 3.2.0, which is not installed.
gns3-gui 2.2.15 requires jsonschema == 3.2.0, which is not installed.
gns3-server 2.2.15 has requirement psutil == 5.6.7, but you'll have psutil 5.7.2 which is incompatible.
gns3-gui 2.2.15 has requirement psutil == 5.6.7, but you'll have psutil 5.7.2 which is incompatible.

然后我用pip3 install命令按顺序安装了它们,然后运行gns3:(

相关内容

  • 没有找到相关文章

最新更新