python - 在 windows10 中安装 OpenSlide-python
问题描述
平台:
win10首页
Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32
我想在 Windows 10 中运行 deepzoom 示例。
遵循:https ://github.com/openslide/openslide-python#installation
1. Install OpenSlide.
2. pip install openslide-python
我在cmd中输入2后,它显示:
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
然后我尝试了:https ://www.scivision.dev/python-windows-visual-c-14-required/
1.install vs_buildtools.exe
2.install “Windows 10 SDK” in buildtool option
3.download OpenSlide Windows Binaries in https://openslide.org/download/#windows-binaries
4.add binaries path to system path
错误仍然存在。
所有错误日志:
(venv) D:\Projects\Libs\openslide-python\examples\deepzoom>pip install openslide-python
Collecting openslide-python
Using cached https://files.pythonhosted.org/packages/26/5a/5b0adeabce81f018a9e4ffe9a419536064bc95c1b12194aff9b7e48f91f7/openslide-python-1.1.1.tar.gz
Requirement already satisfied: Pillow in d:\projects\libs\openslide-python\examples\deepzoom\venv\lib\site-packages (from openslide-python) (5.4.1)
Building wheels for collected packages: openslide-python
Building wheel for openslide-python (setup.py) ... error
Complete output from command d:\projects\libs\openslide-python\examples\deepzoom\venv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\summy\\AppData\\Local\\Temp\\pip-install-ewobbsly\\openslide-python\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\summy\AppData\Local\Temp\pip-wheel-egblanr_ --python-tag cp37:
C:\Users\summy\AppData\Local\Temp\pip-install-ewobbsly\openslide-python\setup.py:23: DistDeprecationWarning: 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']),
C:\Users\summy\AppData\Local\Programs\Python\Python37-32\Lib\distutils\core.py:108: DistDeprecationWarning: Features are deprecated and will be removed in a future version. See https://github.com/pypa/setuptools/issues/65.
_setup_distribution = dist = klass(attrs)
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\openslide
copying openslide\deepzoom.py -> build\lib.win32-3.7\openslide
copying openslide\lowlevel.py -> build\lib.win32-3.7\openslide
copying openslide\_version.py -> build\lib.win32-3.7\openslide
copying openslide\__init__.py -> build\lib.win32-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/
----------------------------------------
Failed building wheel for openslide-python
Running setup.py clean for openslide-python
Failed to build openslide-python
Installing collected packages: openslide-python
Running setup.py install for openslide-python ... error
Complete output from command d:\projects\libs\openslide-python\examples\deepzoom\venv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\summy\\AppData\\Local\\Temp\\pip-install-ewobbsly\\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\summy\AppData\Local\Temp\pip-record-bz8keavu\install-record.txt --single-version-externally-managed --compile --install-headers d:\projects\libs\openslide-python\examples\deepzoom\venv\include\site\python3.7\openslide-python:
C:\Users\summy\AppData\Local\Temp\pip-install-ewobbsly\openslide-python\setup.py:23: DistDeprecationWarning: 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']),
C:\Users\summy\AppData\Local\Programs\Python\Python37-32\Lib\distutils\core.py:108: DistDeprecationWarning: Features are deprecated and will be removed in a future version. See https://github.com/pypa/setuptools/issues/65.
_setup_distribution = dist = klass(attrs)
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\openslide
copying openslide\deepzoom.py -> build\lib.win32-3.7\openslide
copying openslide\lowlevel.py -> build\lib.win32-3.7\openslide
copying openslide\_version.py -> build\lib.win32-3.7\openslide
copying openslide\__init__.py -> build\lib.win32-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/
----------------------------------------
Command "d:\projects\libs\openslide-python\examples\deepzoom\venv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\summy\\AppData\\Local\\Temp\\pip-install-ewobbsly\\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\summy\AppData\Local\Temp\pip-record-bz8keavu\install-record.txt --single-version-externally-managed --compile --install-headers d:\projects\libs\openslide-python\examples\deepzoom\venv\include\site\python3.7\openslide-python" failed with error code 1 in C:\Users\summy\AppData\Local\Temp\pip-install-ewobbsly\openslide-python\
有什么建议吗?
解决方案
推荐阅读
- javascript - 尝试在 javascript 中变形 SVG
- python - 我正在尝试制作一个平台游戏,其关卡在完成上一个后出现
- javascript - 将父组件 ComponentDidMount 数据传递给子 ComponentDidMount
- node.js - 如何使用 MERN 或任何其他简单方式创建聊天应用程序?
- python - 如何使用python按时间间隔发送电子邮件?
- javascript - 如何从表单发送只读值?
- c - 以下C运算符如何组合
- javascript - 单击其他时停止播放音频,多次单击时没有重复事件
- javascript - 使用-> document.elemetbyid 在 javascript 的 givinen 输入中字母计数不重复
- php - 单击表中的特定行时如何查看数据库中特定行的数据