Ubuntu pip3安装jupyter "python.h"的
2020-01-17 本文已影响0人
无解后仰跳投
使用pip3 安装 jupyter 出现如下问题
buildutils/initlibzmq.cpp:10:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.编译器(gcc)无法找到python.h头文件。
解决办法: sudo apt-get install python3-dev, 再次安装jupyter
pip3 install --user jupyter 或者
sudo pip3 install jupyter