0

我正在尝试使用本教程训练 tensorflow 模型,https://towardsdatascience.com/creating-your-own-object-detector-ad69dda69c85但是当我尝试安装 pycocotools 时出现以下错误:

running build
running build_py
running build_ext
building 'pycocotools._mask' extension
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.1
6.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Ja
\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\core\include -I.
./common -IC:\Users\Ja\AppData\Local\Programs\Python\Python37\include -IC:\Users
\Ja\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Mic
rosoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-
IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.
16.27023\include" /Tcpycocotools/_mask.c /Fobuild\temp.win-amd64-3.7\Release\pyc
ocotools/_mask.obj
_mask.c
c:\users\ja\appdata\local\programs\python\python37\include\pyconfig.h(59): fatal
 error C1083: Cannot open file include: 'io.h': No such file or directory

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Communit
y\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit sta
tus 2

我已经尝试安装此线程中建议的 Visual Studio 2017 软件包,https://stackoverflow.com/questions/40018405/cannot-open-include-file-io-h-no-such-file-or-directory 但这仍然不起作用。有什么想法有什么问题吗?

Pycocotools 来自https://github.com/philferriere/cocoapi

视窗 8.1

蟒蛇 3.7

视觉工作室 2017

4

0 回答 0