python安装报错error: pybind11 2.10+ requires MSVC 2017 or newer

pip安装paddleocr时报错,提示要2017或更高,

c:\users\administrator\appdata\local\temp\pip-build-env-86xs2ijc\overlay\lib\site-packages\pybind11\include\pybind11\detail/common.h(86): fatal error C1189: #error: pybind11 2.10+ requires MSVC 2017 or newer
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for lanms-neo
Building wheel for PyMuPDF (setup.py) ... error

下载Build Tools for Visual Studio 2017 ,打开后选单个组件,再选VC++2017最新版本。

https://download.visualstudio.microsoft.com/download/pr/473f1a59-e5bc-4332-8f76-5ff45df9cd24/c237d0f541dff305e3cd6d591710bf175a040af24570a6fdefca4a39fa7f0a93/vs_BuildTools.exe

 

posted @ 2022-11-20 22:10  不识少年愁  阅读(1315)  评论(0编辑  收藏  举报