安装 jupyter时遇到这个问题,在这里查到了解决方法,特记录一下. 解决方式为: 先安装 python-dev: $ sudo apt-get install python-dev 然后再安装需要的包: pip install scandir…
安装与Python版本对应的 python-dev 即可,比如: $ -dev…
ubuntu安装python qingstor-sdk, src/MD2.c:31:20: fatal error: Python.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Failed building wheel for pycrypto 解决方法: apt-get install python3.6-…
参考: fatal error: Python.h: No such file or directory Ubuntu下 fatal error: Python.h: No such file or directory 解决方法 根据使用的Python版本安装python-dev库. sudo apt-get install python-dev # for python2.x installs sudo apt-get install python3-dev # for python3.x i…
在linux命令行安装包时报错 src/MD2.c:31:20: fatal error: Python.h: No such file or directory 原因:缺少了python的dev 解决方法: $ sudo apt-get install python-dev…
装一台新服务器环境的时候,装uwsgi报错: plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory #include <Python.h> 查了一下解决办法: yum install python-devel.x86_64   之后再运行安装,问题解决.…
1 异常信息 usr/include/python3.6m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_common.o psutil/_psutil_common.c::: fatal error: Python.h: No such file or directory #include <Python.h> ^ compilation terminated. error: command…
原因是 python-dev包没有安装 根据Py2还是py3 sudo apt-get install python-dev 或者 sudo apt-get install python3-dev 安装完后,再次安装即可成功…
解决方法: 安装python-devel即可,注意,不是python-dev yum -y install python-devel…
Issue       I encountered an error when I run the python script which need to import the module of "MySQLdb".The error shows like this:   [root@docker1 script]# python Xtrabackup.py Traceback (most recent call last):   File "backup.py"…