[英]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.