鱼C论坛

 找回密码
 立即注册
查看: 2413|回复: 2

linux 下安装Python的问题

[复制链接]
发表于 2017-3-9 17:22:25 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
现在系统是

  1. CentOS Linux release 7.2.1511 (Core)
复制代码


安装时Python3.6.0的时候遇到如下错误,大家看看这是什么情况啊




  1. [root[url=home.php?mod=space&uid=217077]@Localhost[/url] Python-3.6.0]# ./configure
  2. checking build system type... x86_64-unknown-linux-gnu
  3. checking host system type... x86_64-unknown-linux-gnu
  4. checking for python3.6... no
  5. checking for python3... no
  6. checking for python... no
  7. checking for --enable-universalsdk... no
  8. checking for --with-universal-archs... no
  9. checking MACHDEP... linux
  10. checking for --without-gcc... no
  11. checking for --with-icc... no
  12. checking for gcc... no
  13. checking for cc... no
  14. checking for cl.exe... no
  15. configure: error: in `/usr/local/Python-3.6.0':
  16. configure: error: no acceptable C compiler found in $PATH
  17. See `config.log' for more details
  18. [root@localhost Python-3.6.0]# pwd
  19. /usr/local/Python-3.6.0
复制代码
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2017-3-9 17:40:04 | 显示全部楼层
你的linux是不是没安装gcc或者是系统没有合适的C编译器,又或者没有设置C编译器的环境变量
安装一下就可以解决了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-3-9 17:40:21 | 显示全部楼层
我擦,找见原因了,原来是gcc没有装啊
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-5-24 12:48

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表