繁体   English   中英

在python3中安装指纹模块时出错

[英]Error while installing fingerprints module in python3

我正在尝试在python中安装指纹模块,但出现此错误。

RuntimeError:
Please set the ICU_VERSION environment variable to the version of
ICU you have installed.

我尝试了命令

pip install fingerprints 

错误的总描述如下所示。

ERROR: Command errored out with exit status 1:
 command: 'c:\users\aravind emmadishetty\appdata\local\programs\python\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ARAVIN~1\\AppData\\Local\\Temp\\pip-install-d4ljgy00\\pyicu\\setup.py'"'"'; __file__='"'"'C:\\Users\\ARAVIN~1\\AppData\\Local\\Temp\\pip-install-d4ljgy00\\pyicu\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
     cwd: C:\Users\ARAVIN~1\AppData\Local\Temp\pip-install-d4ljgy00\pyicu\
Complete output (53 lines):
(running 'icu-config --version')
(running 'pkg-config --modversion icu-i18n')
Traceback (most recent call last):
  File "C:\Users\ARAVIN~1\AppData\Local\Temp\pip-install-d4ljgy00\pyicu\setup.py", line 62, in <module>
    ICU_VERSION = os.environ['ICU_VERSION']
  File "c:\users\aravind emmadishetty\appdata\local\programs\python\python37\lib\os.py", line 678, in __getitem__
    raise KeyError(key) from None
KeyError: 'ICU_VERSION'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ARAVIN~1\AppData\Local\Temp\pip-install-d4ljgy00\pyicu\setup.py", line 65, in <module>
    ICU_VERSION = check_output(('icu-config', '--version')).strip()
  File "C:\Users\ARAVIN~1\AppData\Local\Temp\pip-install-d4ljgy00\pyicu\setup.py", line 18, in check_output
    return subprocess_check_output(popenargs)
  File "c:\users\aravind emmadishetty\appdata\local\programs\python\python37\lib\subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "c:\users\aravind emmadishetty\appdata\local\programs\python\python37\lib\subprocess.py", line 472, in run
    with Popen(*popenargs, **kwargs) as process:
  File "c:\users\aravind emmadishetty\appdata\local\programs\python\python37\lib\subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "c:\users\aravind emmadishetty\appdata\local\programs\python\python37\lib\subprocess.py", line 1178, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ARAVIN~1\AppData\Local\Temp\pip-install-d4ljgy00\pyicu\setup.py", line 68, in <module>
    ICU_VERSION = check_output(('pkg-config', '--modversion', 'icu-i18n')).strip()
  File "C:\Users\ARAVIN~1\AppData\Local\Temp\pip-install-d4ljgy00\pyicu\setup.py", line 18, in check_output
    return subprocess_check_output(popenargs)
  File "c:\users\aravind emmadishetty\appdata\local\programs\python\python37\lib\subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "c:\users\aravind emmadishetty\appdata\local\programs\python\python37\lib\subprocess.py", line 472, in run
    with Popen(*popenargs, **kwargs) as process:
  File "c:\users\aravind emmadishetty\appdata\local\programs\python\python37\lib\subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "c:\users\aravind emmadishetty\appdata\local\programs\python\python37\lib\subprocess.py", line 1178, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\ARAVIN~1\AppData\Local\Temp\pip-install-d4ljgy00\pyicu\setup.py", line 73, in <module>
    ''')
RuntimeError:
Please set the ICU_VERSION environment variable to the version of
ICU you have installed.

----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

请帮我解决这个问题。

我昨天在尝试安装不同于github的软件包时遇到了同样的错误。 我通过下载zip文件并手动安装它解决了问题,没有出现任何问题。

在此之前,您可能需要尝试'pip3 install git + <copy_GitHub_web_URL_here>'。 您可以从他们的GitHub页面上获得它: https : //github.com/alephdata/fingerprints

在过去的几个月中,我一直遇到很多egg_info错误,因此其他建议(这些建议从未用过,但对某些人来说可能是值得的):更新pip和setuptools,并尝试使用pip3 install或sudo pip3 install而不只是pip install。

我希望这会有所帮助。 如果不是这样,我希望对这个问题有更多了解的人可以提供帮助,因为我对此还很陌生。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM