乐云主机笔记

  • 首页
  • 主机优惠
  • 学习记录
  • 新手教程
  • 自用主机
  • 资源下载
  • 网赚项目
  • 其他
  • pingtest

  1. 首页
  2. 学习记录
  3. 正文

解决在老旧debian7系统中安装宝塔面板报“Fatal error: Python.h: No such file or directory”的方法

2020年4月26日 1388点热度 2人点赞 0条评论

最近在小内存VPS上为节省内存装的debian7系统中中宝塔面板,

debian7解决update失败的办法请参见:

解决Debian7和8 在apt-get update时404错误和“无法更新,错误7638D0442B90D010”等问题

过程中报以下错误:

fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
=================================================
psutil installation failed.

通过百度明确需要安装python-dev但是直接

apt-get install python-dev

会报多个依赖没有安装,于是直接用指令

aptitude install python-dev

在第一次提示选项是否保持原版本时,选“n”

随后列出需要安装的依赖,确认选“y”,开始安装:

安装完成后,重新再次安装宝塔面板成功。

标签: 暂无
最后更新:2020年4月26日

letvps

这个人很懒,什么都没留下

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

分类
  • 主机优惠
  • 其他
  • 域名优惠
  • 学习记录
  • 新手教程
  • 网赚项目
  • 脚本源码
  • 自用主机
  • 资源下载
书签
  • AdvinServers.com
  • 猫云云计算

COPYRIGHT © 2021 Letcloud.cn. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

粤ICP备15031609号-3