1. 安装python
python版本库:https://www.python.org/ftp/python/
wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4rc1.tgz
tar -xzf Python-3.6.4rc1.tgz
cd Python-3.6.4rc1
mkdir -p /home/zck/zhuchengkai/software/Python-3.6.4rc1
# 编译安装
./configure --prefix="/home/zck/zhuchengkai/software/Python-3.6.4rc1"
make
make install
2 添加环境变量
vim ~/.bash_profile
# python 环境变量
export PATH="$PATH:/home/zck/zhuchengkai/software/Python-3.6.4rc1/";
# pip3 环境变量
export PATH="$PATH:/home/zck/zhuchengkai/software/Python-3.6.4rc1/bin/";
cp python python3
source ~/.bash_profile
3 安装其他包
pip3 install pandas
pip3 install numpy
pip3 install scipy
pip3 install sklearn