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

问题:

..........   

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!


  • 4
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值