所以,刚刚安装了最新的3.6.2版本的python版本和更新的pip和setuptools,所以我开始安装PyICU,在没有安装错误的情况下,我在互联网上导航时没有找到相同的错误,我在1.9.5中发现了一些类似的错误,但是看起来不一样。有人有线索吗?
python安装-m PyICU
Collecting PyICU
Using cached PyICU-1.9.7.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "MPATH\Temp\pip-build-b_ftb5gu\PyICU\setup.py", line 12, in <module>
ICU_VERSION = os.environ['ICU_VERSION']
File " MPATH \Programs\Python\Python36-32\lib\os.py", line 669, 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 MPATH \Temp\pip-build-b_ftb5gu\PyICU\setup.py", line 26, in <module>
ICU_VERSION = check_output(('icu-config', '--version')).strip()
File " MPATH \Programs\Python\Python36-32\lib\subprocess.py", line 336, in check_output
**kwargs).stdout
File " MPATH \Programs\Python\Python36-32\lib\subprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File " MPATH \Programs\Python\Python36-32\lib\subprocess.py", line 707, in __init__
restore_signals, start_new_session)
File " MPATH \Programs\Python\Python36-32\lib\subprocess.py", line 992, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] El sistema no puede encontrar el archivo especificado
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File " MPATH \Temp\pip-build-b_ftb5gu\PyICU\setup.py", line 33, in <module>
''')
RuntimeError:
Please set the ICU_VERSION environment variable to the version of
ICU you have installed.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in MPATH \Temp\pip-build-b_ftb5gu\PyICU\发布于 2019-01-21 15:55:27
如果在Linux上发生错误,则应该安装ibicu-dev (在Debian上):
sudo apt-get install libicu-dev发布于 2019-09-23 13:46:17
我在一个新的Ubuntu安装中遇到了这个问题,并且能够通过安装pkg-config来修复它,这样安装就可以知道安装了哪个icu版本:
sudo apt install pkg-confighttps://stackoverflow.com/questions/45526953
复制相似问题