Jenkins配置邮件报错问题解决

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/liudinglong1989/article/details/79089511

Linux下安装或升级Python 2.7
1.准备编译环境gcc

2.去官网下载要安装的对应版本的python的源代码

下载地址:https://www.python.org/downloads/source/

你可以选择你要下载的版本,用wget指令来下载相应的源代码

3.解压下载的代码包


 1. tar -zxvf Python-x.x.x.tgz
 2. cd Python-x.x.x

4.配置

1)查找configure文件


 1. find . -name configure
 2. cd 搜索结果(一般就在Python文件根目录下)

2)进行配置

./configure

5.编译

1. make
2. make install

(如果没有其他特殊需求,安装就到此结束了,输入pythonx.x即可以进入你刚刚安装的python开发环境)

6.替换以前的python默认版本(创建新的软连接)


 1. cd /usr/bin/
 2. rm -rf python
 3. ln -s /usr/local/Python-x.x.x/bin/python ./python

(这样,你直接输入python就是你最新安装的python新版本啦,要想用以前的版本,可以输入pythonx.x来启动)

猜你喜欢

转载自blog.csdn.net/liudinglong1989/article/details/79089511
今日推荐