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了。
附上下载链接:点这里即可下载

你可能感兴趣的:(pytorch,Python)