1、Python环境部署
Python3.7.8 https://www.python.org/ftp/python/3.7.8/Python-3.7.8.tgz
···在服务器/usr/local目录下,新建python3.7文件夹
···在/usr/local/python3.7目录下执行
tar -zxvf Python -3.7.8.tgz
···解压完毕后, 进入到/usr/local/python3.7/Python-3.7.8目录,执行./configure命令:
./configure
···成功后,执行安装命令:
make && make install
成功后会提示pip 安装成功!
···安装完毕后,使用python -V命令还是显示出默认的python编译器,需要修改alias
在~/.bashrc文件中
添加一条 alias python='/usr/local/python3.7/Python-3.7.8/python'
如下文(bashr