ERROR: Command "python setup.py egg_info" python-nss

博客指出查看错误日志时发现缺少头文件问题,进入python - nss官网得知编译python - nss需安装NSPR和NSS的C语言头文件与库,在Linux系统通常安装nss - devel和nspr - devel包,给出了安装命令。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[root@localhost ~]# pip install python-nss

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: http://pypi.douban.com/simple
Collecting python-nss
  Downloading http://pypi.doubanio.com/packages/6b/29/629098e34951c358b1f04f13a70b3590eb0cf2df817d945bd05c4169d71b/python-nss-1.0.1.tar.bz2 (222kB)
     |████████████████████████████████| 225kB 31kB/s 
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-JGnrT5/python-nss/setup.py", line 409, in <module>
        sys.exit(main(sys.argv))
      File "/tmp/pip-install-JGnrT5/python-nss/setup.py", line 333, in main
        nss_include_dir  = find_include_dir(['nss3', 'nss'],   ['nss.h',  'pk11pub.h'], include_roots=include_roots)
      File "/tmp/pip-install-JGnrT5/python-nss/setup.py", line 94, in find_include_dir
        raise ValueError("unable to locate include directory containing header files %s" % include_files)

    ValueError: unable to locate include directory containing header files ['nss.h', 'pk11pub.h']

ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-JGnrT5/python-nss/

查看错误日志缺少头文件

进入python-nss官网,写着To build python-nss you the C language header files and libraries for both NSPR and NSS will need to be installed. This is system and distribution specific, as such we cannot give you explicit instructions. On Linux typically these packages are called:

  • nss-devel
  • nspr-devel

yum install nss-devel -y

yum install nspr-devel -y

转载于:https://www.cnblogs.com/mrwuzs/p/10879458.html

Error unpacking rpm package pesign-115-6.el9.x86_64 Installing : strace-6.12-1.el9.x86_64 17/23 error: unpacking of archive failed on file /usr/bin/authvar;6873e1d2: cpio: open failed - No such file or directory error: pesign-115-6.el9.x86_64: install failed Error unpacking rpm package strace-6.12-1.el9.x86_64 Installing : rpm-sign-4.16.1.3-38.el9.x86_64 18/23 error: unpacking of archive failed on file /usr/bin/strace;6873e1d2: cpio: open failed - No such file or directory error: strace-6.12-1.el9.x86_64: install failed Error unpacking rpm package rpm-sign-4.16.1.3-38.el9.x86_64 Installing : patchutils-0.4.2-7.el9.x86_64 19/23 error: unpacking of archive failed on file /usr/bin/rpmsign;6873e1d2: cpio: open failed - No such file or directory error: rpm-sign-4.16.1.3-38.el9.x86_64: install failed Error unpacking rpm package patchutils-0.4.2-7.el9.x86_64 Installing : ltrace-0.7.91-43.el9.x86_64 20/23 error: unpacking of archive failed on file /usr/bin/combinediff;6873e1d2: cpio: symlink failed - No such file or directory error: patchutils-0.4.2-7.el9.x86_64: install failed Error unpacking rpm package ltrace-0.7.91-43.el9.x86_64 Installing : intltool-0.51.0-20.el9.noarch 21/23 error: unpacking of archive failed on file /usr/bin/ltrace;6873e1d2: cpio: open failed - No such file or directory error: ltrace-0.7.91-43.el9.x86_64: install failed Error unpacking rpm package intltool-0.51.0-20.el9.noarch Installing : diffstat-1.64-6.el9.x86_64 22/23 error: unpacking of archive failed on file /usr/bin/intltool-extract;6873e1d2: cpio: open failed - No such file or directory error: intltool-0.51.0-20.el9.noarch: install failed Error unpacking rpm package diffstat-1.64-6.el9.x86_64 Installing : byacc-2.0.20210109-4.el9.x86_64 23/23 error: unpacking of archive failed on file /usr/bin/diffstat;6873e1d2: cpio: open failed - No such file or directory error: diffstat-1.64-6.el9.x86_64: install failed Error unpacking rpm package byacc-2.0.20210109-4.el9.x86_64 Verifying : asciidoc-9.1.0-3.el9.noarch 1/23 Verifying : byacc-2.0.20210109-4.el9.x86_64 2/23 Verifying : diffstat-1.64-6.el9.x86_64 3/23 Verifying : fribidi-1.0.10-6.el9.2.x86_64 4/23 Verifying : gdb-16.3-2.el9.x86_64 5/23 Verifying : gdb-headless-16.3-2.el9.x86_64 6/23 Verifying : gdk-pixbuf2-2.42.6-4.el9.x86_64 7/23 Verifying : graphviz-2.44.0-26.el9.x86_64 8/23 Verifying : gtk-update-icon-cache-3.24.31-8.el9.x86_64 9/23 Verifying : gtk2-2.24.33-8.el9.x86_64 10/23 Verifying : intltool-0.51.0-20.el9.noarch 11/23 Verifying : ltrace-0.7.91-43.el9.x86_64 12/23 Verifying : nss-tools-3.101.0-10.el9.x86_64 13/23 Verifying : pango-1.48.7-3.el9.x86_64 14/23 Verifying : patchutils-0.4.2-7.el9.x86_64 15/23 Verifying : pesign-115-6.el9.x86_64 16/23 Verifying : source-highlight-3.1.9-12.el9.x86_64 17/23 Verifying : valgrind-1:3.25.1-1.el9.x86_64 18/23 Verifying : valgrind-gdb-1:3.25.1-1.el9.x86_64 19/23 Verifying : valgrind-scripts-1:3.25.1-1.el9.x86_64 20/23 Verifying : rpm-sign-4.16.1.3-38.el9.x86_64 21/23 Verifying : shared-mime-info-2.1-5.el9.x86_64 22/23 Verifying : strace-6.12-1.el9.x86_64 23/23 Failed: asciidoc-9.1.0-3.el9.noarch byacc-2.0.20210109-4.el9.x86_64 diffstat-1.64-6.el9.x86_64 fribidi-1.0.10-6.el9.2.x86_64 gdb-16.3-2.el9.x86_64 gdb-headless-16.3-2.el9.x86_64 gdk-pixbuf2-2.42.6-4.el9.x86_64 graphviz-2.44.0-26.el9.x86_64 gtk-update-icon-cache-3.24.31-8.el9.x86_64 gtk2-2.24.33-8.el9.x86_64 intltool-0.51.0-20.el9.noarch ltrace-0.7.91-43.el9.x86_64 nss-tools-3.101.0-10.el9.x86_64 pango-1.48.7-3.el9.x86_64 patchutils-0.4.2-7.el9.x86_64 pesign-115-6.el9.x86_64 rpm-sign-4.16.1.3-38.el9.x86_64 shared-mime-info-2.1-5.el9.x86_64 source-highlight-3.1.9-12.el9.x86_64 strace-6.12-1.el9.x86_64 valgrind-1:3.25.1-1.el9.x86_64 valgrind-gdb-1:3.25.1-1.el9.x86_64 valgrind-scripts-1:3.25.1-1.el9.x86_64 Error: Transaction failed报错了
最新发布
07-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值