这是我正在使用的代码.
#include "stdafx.h"
#include <iostream>
int main() {
std::cout << "hi";
return 0;
}
Run Code Online (Sandbox Code Playgroud)
当我创建简单的c ++控制台应用程序并尝试构建它时,会发生以下错误:
cannot open include file 'stdio.h': No such file or directory
Run Code Online (Sandbox Code Playgroud)
为什么?stdio.h不应该作为标准库包含在内吗?我能做些什么来取回它?
编辑:我刚看了C:\ Program Files(x86)\ Microsoft Visual Studio 14.0\VC\include目录.没有stdio.h或stdafx.h.我真的不确定为什么.我怎样才能让他们回来?
我正在尝试使用 Tensorflow 中的对象检测模型,并且需要安装 pycocotools。我在 Windows 10 计算机上的 python (3) 虚拟环境中执行此操作。在 Windows 上运行此功能似乎存在一些已知问题,我很确定我已经尝试过所有这些问题。
我尝试过 pip 安装 pycocotools,但出现此错误(构建轮子失败):
(env) PS C:\Users\la01043601\ML_CameraVision\humanDetection> pip install pycocotools
Collecting pycocotools
Using cached pycocotools-2.0.2.tar.gz (23 kB)
Requirement already satisfied: setuptools>=18.0 in c:\users\la01043601\ml_cameravision\humandetection\env\lib\site-packages (from pycocotools) (56.0.0)
Requirement already satisfied: cython>=0.27.3 in c:\users\la01043601\ml_cameravision\humandetection\env\lib\site-packages (from pycocotools) (0.29.23)
Requirement already satisfied: matplotlib>=2.1.0 in c:\users\la01043601\ml_cameravision\humandetection\env\lib\site-packages (from pycocotools) (3.4.2)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\la01043601\ml_cameravision\humandetection\env\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (2.4.7)
Requirement already satisfied: cycler>=0.10 in c:\users\la01043601\ml_cameravision\humandetection\env\lib\site-packages (from matplotlib>=2.1.0->pycocotools) (0.10.0)
Requirement already satisfied: pillow>=6.2.0 in c:\users\la01043601\ml_cameravision\humandetection\env\lib\site-packages …Run Code Online (Sandbox Code Playgroud)