首页 > 编程语言 > 详细

Linux-python环境编译

时间:2020-06-05 00:57:42      阅读:39      评论:0      收藏:0      [点我收藏+]

编译

  • 优点:可以自定义功能
  • 缺点:安装比较耗时
yum install zlib-devel

wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz

tar xf Python-3.6.8.tar.xz

cd Python-3.6.8

./configure --prefix=/opt/python36  检查环节预处理

make 释放makefile文件

make install 安装

错误整理

configure: error: in `/root/test/Python-3.6.8‘:
configure: error: no acceptable C compiler found in $PATH
yum install gcc

添加环节变量

vim /etc/profile.d/python.sh

PATH=$PATH:/opt/python36/bin

Linux-python环境编译

原文:https://www.cnblogs.com/Hedger-Lee/p/13047244.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!