2017-10-22 3 views
2

Mein System ist Windows 10 x64Installieren Pyicu in Python 3.x

Nun möchte Ich mag pyicu installieren, aber ich mit einem Problem begegnen wie diese

Collecting pyicu 

gecached Verwenden PyICU-1.9.7. tar.gz Komplette Ausgabe von Befehl python setup.py ei_info: Traceback (letzter Aufruf zuletzt): Datei "C: \ Benutzer \ ANHVU \ AppData \ Lokale \ Temp \ pip-build-v5fb9ri4 \ pyicu \ setup.py ", Zeile 12, in ICU_VERSION = os.environ ['ICU_VERSION'] Datei" C: \ Benutzer \ ANHVU \ AppData \ Local \ Programme \ Python \ Python35 \ lib \ os.py“, Linie 725, in getitem Erhöhung KeyError (key) aus Keine KeyError: 'ICU_VERSION'

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "C:\Users\ANHVU\AppData\Local\Temp\pip-build-v5fb9ri4\pyicu\setup.py", line 26, in <module> 
    ICU_VERSION = check_output(('icu-config', '--version')).strip() 
    File "C:\Users\ANHVU\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 316, in check_output 
    **kwargs).stdout 
    File "C:\Users\ANHVU\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 383, in run 
    with Popen(*popenargs, **kwargs) as process: 
    File "C:\Users\ANHVU\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 676, in __init__ 
    restore_signals, start_new_session) 
    File "C:\Users\ANHVU\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 955, 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\ANHVU\AppData\Local\Temp\pip-build-v5fb9ri4\pyicu\setup.py", line 33, in <module> 
    ''') 
RuntimeError: 
Please set the ICU_VERSION environment variable to the version of 
ICU you have installed. 

Wie kann ich dieses Problem lösen? Helfen Sie mir bitte.

Antwort

1

Sie können von Unofficial Windows Binaries for Python Extension Packages

Zum Beispiel eine entsprechende whl-Datei herunterladen, die neueste Version für 64-Bit-Windows und Python3 Version ist PyICU-1.9.8-CP35-cp35m-win_amd64.whl

dann öffnen Sie die Windows Powershell-Konsole als Administrator, cd in das Verzeichnis, in dem Sie die Datei whl setzen und führen Sie den folgenden Befehl ein:

python -m pip install .\PyICU-1.9.8-cp35-cp35m-win_amd64.whl 

oder (wenn Sie bereits eine frühere PyICU Version installiert haben)

python -m pip install -U .\PyICU-1.9.8-cp35-cp35m-win_amd64.whl