Ich versuche Keras auf Windows 10 zu installieren. Ich installierte Visual Studio 2015 Community Edition, CUDA 8.0, sein zweites Patch, CuDNN 6.0, PyCharm, Anaconda, Python 3.6.3 in diesem speziellen Auftrag. Ich installierte tensorflow-gpu
. Ich habe \path-to\Python\Python36\bin
zu der Umgebungsvariablen PATH
und für die NVIDIA-Ordner hinzugefügt. Tensorflow funktioniert von der Shell, aber nicht von der Anaconda-Eingabeaufforderung. Wenn ich versuche, Keras mit pip install keras
von PowerShell zu installieren, erhalte ich den folgenden Fehler.Kodierungsfehler bei der Installation von Keras auf Windows 10
PS C:\Users\myusr> pip install keras
Collecting keras
Downloading Keras-2.1.1-py2.py3-none-any.whl (302kB)
100% |████████████████████████████████| 307kB 553kB/s
Collecting pyyaml (from keras)
Downloading PyYAML-3.12.tar.gz (253kB)
100% |████████████████████████████████| 256kB 553kB/s
Collecting scipy>=0.14 (from keras)
Downloading scipy-1.0.0-cp36-none-win_amd64.whl (30.8MB)
100% |████████████████████████████████| 30.8MB 41kB/s
Requirement already satisfied: six>=1.9.0 in c:\users\myusr\appdata\local\programs\python\python36\lib\site-packages (from keras)
Requirement already satisfied: numpy>=1.9.1 in c:\users\myusr\appdata\local\programs\python\python36\lib\site-packages (from keras)
Building wheels for collected packages: pyyaml
Running setup.py bdist_wheel for pyyaml ... error
Failed building wheel for pyyaml
Running setup.py clean for pyyaml
Failed to build pyyaml
Installing collected packages: pyyaml, scipy, keras
Running setup.py install for pyyaml ... error
Exception:
Traceback (most recent call last):
File "c:\users\myusr\appdata\local\programs\python\python36\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str
return s.decode(sys.__stdout__.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 76: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\myusr\appdata\local\programs\python\python36\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "c:\users\myusr\appdata\local\programs\python\python36\lib\site-packages\pip\commands\install.py", line 342, in run
prefix=options.prefix_path,
File "c:\users\myusr\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_set.py", line 784, in install
**kwargs
File "c:\users\myusr\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_install.py", line 878, in install
spinner=spinner,
File "c:\users\myusr\appdata\local\programs\python\python36\lib\site-packages\pip\utils\__init__.py", line 676, in call_subprocess
line = console_to_str(proc.stdout.readline())
File "c:\users\myusr\appdata\local\programs\python\python36\lib\site-packages\pip\compat\__init__.py", line 75, in console_to_str
return s.decode('utf_8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 76: invalid start byte
Was kann ich tun?
Versuchen Sie, pyyaml separat zu installieren und sehen Sie, ob es den gleichen Fehler gibt. $ pip install pyyaml –
Versuchen Sie auch, Ihre setuptools zu aktualisieren: $ pip install --upgrade setsetools --ignore-installed –
Vielen Dank. Die Fehlerausgabe ist immer noch die gleiche, es hat nicht funktioniert! – effebi