简体   繁体   English

已安装Python3,但在Ubuntu中输出错误

[英]Installed Python3, but it outputs error in Ubuntu

我已经安装了PYTHON3_INCLUDE_DIR detected at /usr/include/python3.2mu, but /usr/include/python3.2mu/Python.h does not seem to exist Call Stack (most recent call first): 。但是cmake ..显示了一个错误: PYTHON3_INCLUDE_DIR detected at /usr/include/python3.2mu, but /usr/include/python3.2mu/Python.h does not seem to exist Call Stack (most recent call first): usr / include / python3.2mu只有一个文件pyconfig.h

Since you are calling cmake, I infer you are trying to build some Python C extensions. 由于您正在调用cmake,因此我推断您正在尝试构建一些Python C扩展。 You will also need to install the package python3-dev to make this work. 您还需要安装软件包python3-dev才能完成此工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM