[英]Cannot locate python.h on ubuntu
我正在尝试使用sudo pip3 install jupyter jupyterlab
安装到我的 Jetson Nano 中并收到此错误。
c/_cffi_backend.c:2:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
我尝试sudo apt-get install python3.6-dev
(以及 python3-dev 和 python-dev )但是当我输入locate Python.h
并且之前的错误仍然发生时没有返回任何内容。
如何安装 Python.h? 提前致谢。
sudo apt install python-dev
(通常)。 如果您正在运行类似 CentOS 之类的奇怪东西,请查看https://gankrin.org/how-to-fix-fatal-error-python-h-no-such-file-or-directory/
对我来说,我没有安装 jupyter,而是 esptool,所以我还必须:
sudo apt install libffi-dev
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.