cd /path/to/athena_meta/dependences wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz
tar -xvf Python-2.7.18.tar.xz cd python-2.7.18
./configure --prefix=/path/to/athena_meta/dependences/python-2.7.18 make -j && make -install
vi ~/.bashrc
在打开的文件追加以下内容。
export PATH=/path/to/athena_meta/dependences/python-2.7.18/bin:$PATH
按“Esc”键,输入:wq!,按“Enter”保存并退出编辑。
source ~/.bashrc
python -V