添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

首先,需要安装vs2015或vs2017。

windows上编译pycocotools出现错误:

c1: fatal error C1083: 无法打开源文件: “pycocotools/_mask.c”: No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual
Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed
with exit status 2

解决办法:

pip install cython # python3

因为你的python环境里面没有安装cython,需要在python环境中安装cython后便解决该问题。

安装 pycocotools:

pip install cython
git clone https://github.com/cocodataset/cocoapi.git
cd coco/PythonAPI
python setup.py build_ext --inplace # 全局安装
python setup.py build_ext install # python环境内安装
首先,需要安装vs2015或vs2017。windows上编译pycocotools出现错误:c1: fatal error C1083: 无法打开源文件: “pycocotools/_mask.c”: No such file or directoryerror: command 'C:\\Program Files (x86)\\Microsoft VisualStudio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX
解决Opencv3.3.0 编译 contrib时报错:“vgg_generated_120.i”: No such file or directory 和“boostdesc_bgm.i”: No such file or directory 等问题。 将目录中boostdesc_bgm.i、boostdesc_bgm_bi.i、boostdesc_bgm_hd.i、boostdesc_binboost_064.i、boostdesc_binboost_128.i、boostdesc_binboost_256.i、boostdesc_lbgm.i、vgg_generated_120.i、vgg_generated_64.i、vgg_generated_80.i、vgg_generated_48.i复制到..\opencv_contrib-3.3.0\modules\xfeatures2d\src目录下重现 编译 即可。
cp -pR -f phar.phar /usr/local/php7/bin/phar cp: cannot stat 'phar.phar': No such file or directory make: *** [install-pharcmd] Error 1 解决方法很简单: find . -name 'phar.phar' 找到 phar.phar 文件, 移动或者复制到安装指令执行的目录下就行了. 最后附上, 完成后的执行指令: 以上就是这篇文章的全 这个不是第三方库的问题,而是没有安装 python 的环境: sudo apt-get install python -dev sudo apt-get install python 3-dev 可以参考: fatal error : Python .h: No such file or directory
安装COCOAPI: # COCOAPI=/path/to/clone/cocoapi git clone https://github.com/cocodataset/cocoapi.git $COCOAPI cd $COCOAPI/ Python API python 3.5 setup.py install --user # 博主的 Python 版本为3.5, 编译 时改为自己对应版本 网上看到各种各种办法都没有成功安装 以下办法一次成功 从清华镜像源下载https://pypi.tuna.tsinghua.edu.cn/simple/ pycoco tools - windows .whl型包, pycoco tools _ windows -2.0.0.2-cp38-cp38-win_amd64.whl 注意看格式,cp38就是 python 3.8 用cmd的pip命令 pip install 包所在的路径 pip install C:\Users\amate
安装 pycoco tools : 下载好安装包到本地(链接:https://github.com/cocodataset/cocoapi),进入cocoapi-master/ Python API/文件夹下执行make 编译 : $ cd cocoapi-master/ $ cd Python API/ $ make python setup.py build_ext --inplace
这种 错误 说明在 编译 时找不到头文件,首先一种办法就是在项目属性->C/C++->常规->附加包含目录 中添加头文件所在路径,但是我即便添加了也没有作用,最后将附加包含目录中的所有路径全部删除,然后使用电脑的环境变量来描述头文件的路径,结果就没问题了。 我个人理解是附加包含目录中头文件路径不能重复,或者比如这个头文件在几个地方都有,不能把这几个地方的头文件路径全部复制进来,混乱或者...
这个 错误 通常是由于缺少http-parser库导致的。你需要安装http-parser库并确保它已正确安装。 如果您使用的是Ubuntu或Debian系统,可以使用以下命令安装: sudo apt-get install libhttp-parser-dev 如果您使用的是CentOS或RedHat系统,可以使用以下命令安装: sudo yum install http-parser-devel 如果您使用的是Mac系统,可以使用以下命令安装: brew install http-parser 安装完成后,您需要确保 编译 器能够找到http_parser.h头文件。您可以将库文件的路径添加到 编译 器的搜索路径中。例如,如果您的库文件位于/usr/local/lib中,您可以使用以下命令进行 编译 : gcc -o my_program my_program.c -I/usr/local/include -L/usr/local/lib -lhttp_parser 希望这可以帮助您解决问题。
tx2使用pip安装onnx,解决Could not build wheels for onnx which use PEP 517 and cannot be installed directly W110102Y: niu de 表情包