准确的说是没有安装 pycocotools

可以借鉴下面链接:

https://blog.csdn.net/ab0902cd/article/details/79085797

因为我通常用Python2.7,所以Python3的dev没有装,报错:pycocotools/_mask.c:4:20: fatal error: Python.h: No such file or directory

借鉴:https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory

Looks like you haven't properly installed the header files and static libraries for python dev. Use your package manager to install them system-wide.

For apt (Ubuntu, Debian...):

sudo apt-get install python-dev   # for python2.x installs
sudo apt-get install python3-dev # for python3.x installs

For yum (CentOS, RHEL...):

sudo yum install python-devel   # for python2.x installs
sudo yum install python34-devel # for python3.4 installs

For dnf (Fedora...):

sudo dnf install python2-devel  # for python2.x installs
sudo dnf install python3-devel # for python3.x installs

For zypper (openSUSE...):

sudo zypper in python-devel   # for python2.x installs
sudo zypper in python3-devel # for python3.x installs

最新文章

  1. Bootstrap3 Grid system原理及应用
  2. python基础之循环结构以及列表
  3. java提高篇(十)-----详解匿名内部类
  4. Item 表单页面的 Select2 相关业务逻辑
  5. asp.net mvc4使用百度ueditor编辑器
  6. hdu2034java
  7. C#编程连接数据库,通过更改配置文件切换数据库功能。
  8. SpringMVC , Spring , MyBatis 文件上传
  9. 基于SpringBoot开发一个Restful服务,实现增删改查功能
  10. 用tensorlayer导入Slim模型迁移学习
  11. 2019.03.02 bzoj2565: 最长双回文串(pam)
  12. 第二篇:SpringBoot2.0整合ActiveMQ
  13. GitHub多人协作简明教程
  14. Linux网络状态工具ss命令使用详解【转】
  15. 001_Eclipse编写第一个Java程序
  16. Windows 7 64bit Python 2 Install
  17. 2017头条笔试题:二维点集中找出右上角没有点的点并按x坐标从小到大打印坐标
  18. 转:c# WinForm开发 DataGridView控件的各种操作总结(单元格操作,属性设置)
  19. 自定义MVC视图引擎ViewEngine 创建Model的专属视图
  20. Oracle数据库面试题(转)

热门文章

  1. web(八)CSS选择器
  2. c# 如何 使用共用体
  3. 本地maven库导入架包
  4. springdata笔记2
  5. Restful Service 中 DateTime 在 url 中传递
  6. design_patterns_in_typescript 学习
  7. day51 django第二天 django初识
  8. redis 延时任务 看一篇成高手系列2
  9. Delphi 7升级到XE2的字符串问题
  10. NodeJS对象数组Array 根据对象object key的值排序sort