zoukankan      html  css  js  c++  java
  • ERROR: Command "python setup.py egg_info" python-nss

    [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

  • 相关阅读:
    Codeforces Round #452 F. Letters Removing
    bzoj 1492: [NOI2007]货币兑换Cash
    bzoj 4016: [FJOI2014]最短路径树问题
    bzoj 2109: [Noi2010]Plane 航空管制
    bzoj 1058: [ZJOI2007]报表统计
    bzoj 1016: [JSOI2008]最小生成树计数
    bzoj 1013: [JSOI2008]球形空间产生器sphere
    bzoj 1758: [Wc2010]重建计划
    bzoj 2337: [HNOI2011]XOR和路径
    一本通1668取石子
  • 原文地址:https://www.cnblogs.com/mrwuzs/p/10879458.html
Copyright © 2011-2022 走看看