码迷,mamicode.com
首页 > 编程语言 > 详细

Linux-python环境编译

时间:2020-06-05 01:12:55      阅读:65      评论:0      收藏:0      [点我收藏+]

标签:eve   gcc   自定义   cep   install   mpi   安装   path   lan   

编译

  • 优点:可以自定义功能
  • 缺点:安装比较耗时
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环境编译

标签:eve   gcc   自定义   cep   install   mpi   安装   path   lan   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!