python - fatal error C1083 : Cannot open include file: 'atlbase.h' Pyinsane package

标签 python c++ visual-studio pyinsane

<分区>

所以在从 here 下载 pyinsane 2.0.2 包之后然后进入命令窗口,我运行了 setup.py build命令。但是每次我运行它时,都会出现 fatal error C1083:

rawapi.cpp
src/pyinsane2/wia/rawapi.cpp(8): fatal error C 1083: Cannot open include file: 
'atlbase.h': 
no such file or directory 
error: command 'C\\Program Files (x86)\\Microsoft Visual Studio\\
Visual Studio\\VC\\Tools\\MSVC\\14.12.25827\\bin\\
HostX86\\x86\\cl.exe' failed with exit status 2

我知道这个问题以前曾多次以非常相似的方式被问到,但没有一个是关于 pyinsane 包或 atlbase.h 文件的,我正在处理。 如果我只是没有找到正确的问题,我将不胜感激。

是的,我已经尝试过使用 #include <atlbase>但它给了我同样的错误。 我在带有 MC VS 2017 的 Windows 8.1 上使用 python 3.6.3。

最佳答案

I know this question got asked in quite similar ways many times before, but none of them were about the pyinsane Package or the atlbase.h.

您真的搜索过解决方案吗?在 Google 中的第一次搜索尝试结果是指向 C++ #include <atlbase.h> is not found 的第一个链接

When running the Visual Studio Installer, select the Individual components tab, and under SDKs, libraries, and frameworks make sure Visual C++ ATL Support is selected.

关于python - fatal error C1083 : Cannot open include file: 'atlbase.h' Pyinsane package,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48653644/

相关文章:

python - 在python中引发异常后的变量释放

Java调用错误的python版本

c# - 为什么 context.SaveChanges() 更新表中的每一行?

c# - 如何在 Visual Studio 中指定调试器可视化工具的顺序

c++ - 答案不明确 c++

c# - "legacy".NET 项目是否也可以使用新的 NuGet 3 功能?

python - 如何使用字符串值作为对象名称

python - python 中的 mongodb 将打开多少个连接?

c++ - 删除文件,C++,WinCE

c++ - 使用 boost python 将 python 列表传递给 c++ 扩展