您的位置:首页 > 其它

pip install scikit-image 在windows上安装失败

2018-01-24 12:01 639 查看
问题:

..........   

running build_ext

    No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying f

rom distutils

    customize MSVCCompiler

    customize MSVCCompiler using build_ext

    building 'skimage._shared.geometry' extension

    compiling C sources

    error: [WinError 2] 系统找不到指定的文件。

    ----------------------------------------

Command ""d:\program files\python 3.5\python.exe" -u -c "import setuptools, toke

nize;__file__='C:\\Users\\root\\AppData\\Local\\TEMP_~1\\pip-build-lwkf7q36\\sci

kit-image\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().r

eplace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --

record C:\Users\root\AppData\Local\TEMP_~1\pip-gs29x02e-record\install-record.tx

t --single-version-externally-managed --compile" failed with error code 1 in C:\

Users\root\AppData\Local\TEMP_~1\pip-build-lwkf7q36\scikit-image\

解决方法:

第一步:在官网http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-image下载:scikit-image

根据自己安装的Python版本以及电脑系统笨笨下载相应scikit-image的版本。(我的Python是3.5,所以下载的scikit-image版本是:scikit_image-0.13.1-cp35-cp35m-win_amd64.whl)

第二步:执行安装本地包的pip命令

pip install d:\deeplearning\scikit_image-0.13.1-cp35-cp35m-win_amd64.whl

OK!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息