ERROR: Command errored out with exit status 1

在安装openslide的时候出现:

ERROR: Command errored out with exit status 1:
     command: 'd:\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\10622\\AppData\\Local\\Temp\\pip-install-2au6lf3q\\openslide-python\\setup.py'"'"'; __file__='"'"'C:\\Users\\10622\\AppData\\Local\\Temp\\pip-install-2au6lf3q\\openslide-python\\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\10622\AppData\Local\Temp\pip-record-ba3lrj87\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\anaconda\Include\openslide-python'
         cwd: C:\Users\10622\AppData\Local\Temp\pip-install-2au6lf3q\openslide-python\
    Complete output (15 lines):
    C:\Users\10622\AppData\Local\Temp\pip-install-2au6lf3q\openslide-python\setup.py:23: DeprecationWarning: Features are deprecated and will be removed in a future version. See https://github.com/pypa/setuptools/issues/65.
      Extension('openslide._convert', ['openslide/_convert.c']),
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\openslide
    copying openslide\deepzoom.py -> build\lib.win-amd64-3.7\openslide
    copying openslide\lowlevel.py -> build\lib.win-amd64-3.7\openslide
    copying openslide\_version.py -> build\lib.win-amd64-3.7\openslide
    copying openslide\__init__.py -> build\lib.win-amd64-3.7\openslide
    running build_ext
    building 'openslide._convert' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

 
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'd:\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\10622\\AppData\\Local\\Temp\\pip-install-2au6lf3q\\openslide-python\\setup.py'"'"'; __file__='"'"'C:\\Users\\10622\\AppData\\Local\\Temp\\pip-install-2au6lf3q\\openslide-python\\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\10622\AppData\Local\Temp\pip-record-ba3lrj87\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\anaconda\Include\openslide-python' Check the logs for full command output.

在错误提示中,显示
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
意思就是让我们安装Microsoft Visual C++ 14.0,所以下载安装就OK了。
附上下载链接:点这里即可下载

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值