-1

我在 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

我也是psutil == 5.6.7pip install psutil == 5.6.7命令安装的。输出是:Requirement already satisfied: psutil == 5.6.7 in /usr/local/lib/python2.7/dist-packages (5.6.7)

你认为是什么问题?

4

1 回答 1

1

解决了

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

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

然后我psutilpip3 install 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 :)

于 2020-10-14T07:07:09.400 回答