unbuntu 16.04 运行 pip install jupyter --upgrade 的时候出现了下面的错误

Failed building wheel for scandir
Running setup.py clean for scandir
Failed to build scandir
Installing collected packages: scandir, pathlib2, simplegeneric, pickleshare, ipython, Send2Trash, backports-abc, futures, singledispatch, tornado, pyzmq, python-dateutil, jupyter-client, terminado, ipykernel, notebook, widgetsnbextension, ipywidgets, qtconsole, jupyter-console, jupyter
Running setup.py install for scandir ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-kNCioY/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-27iuBb/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying scandir.py -> build/lib.linux-x86_64-2.7
running build_ext
building '_scandir' extension
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _scandir.c -o build/temp.linux-x86_64-2.7/_scandir.o
_scandir.c:14:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-kNCioY/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-27iuBb/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-kNCioY/scandir/

然后在github上面找到这个

That's unrelated to IPython, the issue comes from installing scandir, you should see that with the scandir maintainers.

If you are missing Python.h during compilation that's likely because you are missing the Python header. If you are going to compile c-extensions (which you do implicitly by install in scandir) you may want to install the Python headers (apt-get install python-dev maybe ?).

大致意思就是缺少  Python.h  头文件,上面我用蓝色标出了这个错误,运行下面这个指令完美解决我的问题

apt-get install python-dev

Failed building wheel for scandir 解决方案相关推荐

  1. ERROR: Failed building wheel for pycrypto

    我的系统环境:CentOS Python环境:Python3(Python2也适用) 问题:ERROR: Failed building wheel for pycrypto 解决方案: 在CentO ...

  2. python解决Failed building wheel for XXX

    前言 今天运行一个python机器学习项目,结果报错连连,出现两个问题: ERROR: Failed building wheel for XXX ERROR: xxx.whl is not a su ...

  3. 解决Mac安装tesserocr报错问题 Failed building wheel for

    解决Mac安装tesserocr报错问题 Failed building wheel for 参考文章: (1)解决Mac安装tesserocr报错问题 Failed building wheel f ...

  4. Failed building wheel for netifaces

    目录 文章目录 目录 问题 解决 问题 安装 OpenStackClient 的时候发现问题: Failed building wheel for netifaces Running setup.py ...

  5. windows10下编译dllib报错: ERROR: Failed building wheel for dlib

    一.报错信息 在安装dlib的时候,使用pip进行安装 pip install dlib 二.解决方式 1.检查自己是否已经安装了cmake 首先要检测自己本机是否已经安装了cmake,因为安装dli ...

  6. 成功解决ERROR: Failed building wheel for pycocotools

    成功解决ERROR: Failed building wheel for pycocotools 目录 解决问题 解决方法 T1.直接命令法 T2.先编译后下载法 解决问题 ERROR: Failed ...

  7. python解决Net Frameword匹配问题及Failed building wheel for XXX

    文章目录 1.背景 2.错误描述 2.1 错误关键语句_1 2.2 错误关键语句_2 2.3 错误关键语句_3 3.原因 4.解决问题 5.总结 6.参考链接 1.背景 计划使用NI veristan ...

  8. ERROR: Failed building wheel for pillow and ERROR: running bdist_wheel问题解决

    ERROR: Failed building wheel for pillow and ERROR: running bdist_wheel问题解决 错误展示: 第一步:. pip install - ...

  9. ERROR: Failed building wheel for ctcdecode

    ERROR: Failed building wheel for ctcdecode 报错信息 Processing /ctcdecode Building wheels for collected ...

最新文章

  1. 使用元组输入进行计算和归约
  2. SQLSERVER中统计所有表的记录数
  3. eclipse使用git合并_Eclipse中使用git
  4. 笔记-项目采购管理-采购管理过程(具体过程)
  5. java 编写代码_Java 7:如何编写非常快速的Java代码
  6. 【原创】MapReduce编程系列之表连接
  7. Cloud一分钟 | 阿里云将在英国大区设立数据中心
  8. barrons ap计算机科学,巴朗ap心理学barrons ap psychology, 5th edition-201-240.pdf
  9. 发现读纸质媒介比电子媒介的乐趣大多了
  10. AttributeError: module 'pip' has no attribute 'main'
  11. 研究人员发现针对印度军队的网络间谍活动
  12. JavaScript基础(三)
  13. 关于【CSDN免积分下载器】的分析
  14. Linux 常用的zip压缩和解压命令详解
  15. 《蜗居》:海外解读中国新样本
  16. 【神经网络结构搜索综述】NAS的挑战和解决方案
  17. P4745 B’s problem(b)
  18. 计算机应用有作业吗,计算机应用基础_作业1
  19. 程序员新人面临最尴尬的事:需要工作积累经验,需要有经验才能找到工作!到底怎么办?...
  20. 低调推广重疾险 滴滴公司的金融帝国美梦能否真正实现?

热门文章

  1. matlab中std函数怎么写,Matlab中求均值和标准差的函数分别是mean(x)和std(x)。
  2. 同时更改一条数据_数据仓库amp;面试总结
  3. 搭建 Kafka 集群 (v2.12-2.3.0)
  4. Android项目开发—GeoQuiz
  5. RPC框架实现思路浅析
  6. lintcode-87-删除二叉查找树的节点
  7. $watch, $watchCollection, $watchGroup的使用
  8. reportng定制修改
  9. Shell编程之一:Shell基础编程
  10. mysql5.7 json特性_【Mysql】Mysql5.7新特性之-json存储