scikit-image 安装失败
scikit-image fails to install
我正在尝试在我的 Windows 7 64 位机器上安装 scikit-image
软件包 python 3.5。安装 scikit 时,满足要求:
Requirement already satisfied: six>=1.7.3 in c:\users\x\appdata\local\programs\python\python35\lib\site-packages (from scikit-image)
Requirement already satisfied: networkx>=1.8 in c:\users\x\appdata\local\programs\python\python35\lib\site-packages (from scikit-image)
Requirement already satisfied: pillow>=2.1.0 in c:\users\x\appdata\local\programs\python\python35\lib\site-packages (from scikit-image)
Requirement already satisfied: PyWavelets>=0.4.0 in c:\users\x\appdata\local\programs\python\python35\lib\site-packages (from scikit-image)
Requirement already satisfied: decorator>=4.1.0 in c:\users\x\appdata\local\programs\python\python35\lib\site-packages (from networkx>=1.8->scikit-image)
Requirement already satisfied: numpy>=1.9.1 in c:\users\x\appdata\local\programs\python\python35\lib\site-packages (from PyWavelets>=0.4.0->scikit-image)
但最终安装失败:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 114: character maps to <undefined>
----------------------------------------
Failed building wheel for scikit-image
Command "C:\Users\X\AppData\Local\Programs\Python\Python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\X\AppData\Local\Temp\pycharm-packaging\scikit-image\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\X\AppData\Local\Temp\pip-3hy8fcuv-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\X\AppData\Local\Temp\pycharm-packaging\scikit-image\
我已经试过了:
pip install -U wheel
pip install -U setuptools
pip install -U scipy
并且还升级了 pip 本身,但没有任何效果。
我知道现在有点晚了(r),但我遇到了完全相同的问题。我的解决方案是从 here 安装轮子。
TBH,我不知道他们有什么不同,他们为什么工作以及他们是谁。
在那里下载正确的版本。例如。对于 python 3.5,您需要包含 35
的版本。目前,这是 scikit_image‑0.13.1‑cp35‑cp35m‑win32.whl
,正下方是它的 64 位版本。
通过 运行 pip install C:\users\you\downloads\the_wheel_you_downloaded
安装。
实际解决方案是在安装命令前键入 chcp 65001
。这将控制台的默认字符编码更改为 UTF-8,然后它起作用了。
我正在尝试在我的 Windows 7 64 位机器上安装 scikit-image
软件包 python 3.5。安装 scikit 时,满足要求:
Requirement already satisfied: six>=1.7.3 in c:\users\x\appdata\local\programs\python\python35\lib\site-packages (from scikit-image)
Requirement already satisfied: networkx>=1.8 in c:\users\x\appdata\local\programs\python\python35\lib\site-packages (from scikit-image)
Requirement already satisfied: pillow>=2.1.0 in c:\users\x\appdata\local\programs\python\python35\lib\site-packages (from scikit-image)
Requirement already satisfied: PyWavelets>=0.4.0 in c:\users\x\appdata\local\programs\python\python35\lib\site-packages (from scikit-image)
Requirement already satisfied: decorator>=4.1.0 in c:\users\x\appdata\local\programs\python\python35\lib\site-packages (from networkx>=1.8->scikit-image)
Requirement already satisfied: numpy>=1.9.1 in c:\users\x\appdata\local\programs\python\python35\lib\site-packages (from PyWavelets>=0.4.0->scikit-image)
但最终安装失败:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 114: character maps to <undefined>
----------------------------------------
Failed building wheel for scikit-image
Command "C:\Users\X\AppData\Local\Programs\Python\Python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\X\AppData\Local\Temp\pycharm-packaging\scikit-image\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\X\AppData\Local\Temp\pip-3hy8fcuv-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\X\AppData\Local\Temp\pycharm-packaging\scikit-image\
我已经试过了:
pip install -U wheel
pip install -U setuptools
pip install -U scipy
并且还升级了 pip 本身,但没有任何效果。
我知道现在有点晚了(r),但我遇到了完全相同的问题。我的解决方案是从 here 安装轮子。
TBH,我不知道他们有什么不同,他们为什么工作以及他们是谁。
在那里下载正确的版本。例如。对于 python 3.5,您需要包含 35
的版本。目前,这是 scikit_image‑0.13.1‑cp35‑cp35m‑win32.whl
,正下方是它的 64 位版本。
通过 运行 pip install C:\users\you\downloads\the_wheel_you_downloaded
安装。
实际解决方案是在安装命令前键入 chcp 65001
。这将控制台的默认字符编码更改为 UTF-8,然后它起作用了。