我试图解决这个问题,但已经走到了尽头。 我正在尝试在Fedora上安装NAPALM(第21版)
您可以安装NAPALM作为一个整体' napalm'或根据需要的子包 - 即
凝固汽油弹IBM 凝固汽油弹IOS 凝固汽油弹JUNOS 等
当我跑#34; pip3安装凝固汽油弹"所有包下载/解压缩但是我似乎得到了与pyangbind相关的特定错误。
如果我尝试安装子包/
,情况也是如此以下安装日志的详细信息 任何帮助将不胜感激
[rbotham@ernie ~]$ pip3 install napalm
Downloading/unpacking napalm
Downloading napalm-1.1.0.tar.gz
Running setup.py (path:/tmp/pip-build-fy54pkbj/napalm/setup.py) egg_info for package napalm
Downloading/unpacking napalm-base (from napalm)
Downloading napalm-base-0.15.0.tar.gz (231kB): 231kB downloaded
Running setup.py (path:/tmp/pip-build-fy54pkbj/napalm-base/setup.py) egg_info for package napalm-base
Downloading/unpacking napalm-eos (from napalm)
Downloading napalm-eos-0.3.0.tar.gz
Running setup.py (path:/tmp/pip-build-fy54pkbj/napalm-eos/setup.py) egg_info for package napalm-eos
Downloading/unpacking napalm-fortios (from napalm)
Downloading napalm-fortios-0.1.1.tar.gz
Running setup.py (path:/tmp/pip-build-fy54pkbj/napalm-fortios/setup.py) egg_info for package napalm-fortios
Downloading/unpacking napalm-ibm (from napalm)
Downloading napalm-ibm-0.1.1.tar.gz
Running setup.py (path:/tmp/pip-build-fy54pkbj/napalm-ibm/setup.py) egg_info for package napalm-ibm
Downloading/unpacking napalm-ios (from napalm)
Downloading napalm-ios-0.2.0.tar.gz
Running setup.py (path:/tmp/pip-build-fy54pkbj/napalm-ios/setup.py) egg_info for package napalm-ios
Downloading/unpacking napalm-iosxr (from napalm)
Downloading napalm-iosxr-0.2.2.tar.gz
Running setup.py (path:/tmp/pip-build-fy54pkbj/napalm-iosxr/setup.py) egg_info for package napalm-iosxr
Downloading/unpacking napalm-junos (from napalm)
Downloading napalm-junos-0.3.0.tar.gz
Running setup.py (path:/tmp/pip-build-fy54pkbj/napalm-junos/setup.py) egg_info for package napalm-junos
warning: no files found matching 'napalm_junos/utils/textfsm_templates/*.tpl'
Downloading/unpacking napalm-nxos (from napalm)
Downloading napalm-nxos-0.3.0.tar.gz
Running setup.py (path:/tmp/pip-build-fy54pkbj/napalm-nxos/setup.py) egg_info for package napalm-nxos
Downloading/unpacking napalm-pluribus (from napalm)
Downloading napalm-pluribus-0.3.0.tar.gz
Running setup.py (path:/tmp/pip-build-fy54pkbj/napalm-pluribus/setup.py) egg_info for package napalm-pluribus
Downloading/unpacking napalm-panos (from napalm)
Downloading napalm-panos-0.1.0.tar.gz
Running setup.py (path:/tmp/pip-build-fy54pkbj/napalm-panos/setup.py) egg_info for package napalm-panos
warning: no files found matching 'include'
Downloading/unpacking jinja2 (from napalm-base->napalm)
Downloading Jinja2-2.8-py2.py3-none-any.whl (263kB): 263kB downloaded
Downloading/unpacking pyangbind (from napalm-base->napalm)
Downloading pyangbind-0.5.8.tar.gz (46kB): 46kB downloaded
Running setup.py (path:/tmp/pip-build-fy54pkbj/pyangbind/setup.py) egg_info for package pyangbind
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/pip/download.py", line 274, in get_file_content
f = open(url)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-fy54pkbj/pyangbind/requirements.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-build-fy54pkbj/pyangbind/setup.py", line 8, in <module>
inst_reqs = [str(ir.req) for ir in pip_reqs]
File "/tmp/pip-build-fy54pkbj/pyangbind/setup.py", line 8, in <listcomp>
inst_reqs = [str(ir.req) for ir in pip_reqs]
File "/usr/lib/python3.4/site-packages/pip/req.py", line 1551, in parse_requirements
session=session,
File "/usr/lib/python3.4/site-packages/pip/download.py", line 278, in get_file_content
raise InstallationError('Could not open requirements file: %s' % str(e))
pip.exceptions.InstallationError: Could not open requirements file: [Errno 2] No such file or directory: '/tmp/pip-build-fy54pkbj/pyangbind/requirements.txt'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/pip/download.py", line 274, in get_file_content
f = open(url)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-fy54pkbj/pyangbind/requirements.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-build-fy54pkbj/pyangbind/setup.py", line 8, in <module>
inst_reqs = [str(ir.req) for ir in pip_reqs]
File "/tmp/pip-build-fy54pkbj/pyangbind/setup.py", line 8, in <listcomp>
inst_reqs = [str(ir.req) for ir in pip_reqs]
File "/usr/lib/python3.4/site-packages/pip/req.py", line 1551, in parse_requirements
session=session,
File "/usr/lib/python3.4/site-packages/pip/download.py", line 278, in get_file_content
raise InstallationError('Could not open requirements file: %s' % str(e))
pip.exceptions.InstallationError: Could not open requirements file: [Errno 2] No such file or directory: '/tmp/pip-build-fy54pkbj/pyangbind/requirements.txt'
答案 0 :(得分:0)
看起来你正在尝试在python3下安装,Napalm目前不支持python 3。 https://github.com/napalm-automation/napalm/issues/199