python3.6环境安装

python3.6环境安装

#!/bin/bash
# utf-8
# desc : install Python-3.6.5 and python dependency 
source /etc/profile &> /dev/null
yum install bzip2-devel xz-devel libffi-devel -y
wget http://mirrorkf.xx.local/software/Python-3.6.5.tgz -O /tmp/Python-3.6.5.tgz
cd /tmp/ && tar zxf Python-3.6.5.tgz && cd Python-3.6.5 && mkdir -p /usr/local/python3 
./configure --prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
echo "Python-3.6.5 install success"
python3 -m pip install numpy==1.19.5 --index-url=http://mirrors.xx.com/pypi/simple --trusted-host mirrors.xx.com
python3 -m pip install scipy==1.4.1 --index-url=http://mirrors.xx.com/pypi/simple --trusted-host mirrors.xx.com
python3 -m pip install pandas==0.25.3 --index-url=http://mirrors.xx.com/pypi/simple --trusted-host mirrors.xx.com
python3 -m pip install scikit-learn==0.22.1 --index-url=http://mirrors.xx.com/pypi/simple --trusted-host mirrors.xx.com
python3 -m pip install scikit-learn==0.22.1 --index-url=http://mirrors.xx.com/pypi/simple --trusted-host mirrors.xx.com
python3 -m pip install cython --index-url=http://mirrors.xx.com/pypi/simple --trusted-host mirrors.xx.com
python3 -m pip install scipy --index-url=http://mirrors.xx.com/pypi/simple --trusted-host mirrors.xx.com
python3 -m pip install ortools --index-url=http://mirrors.xx.com/pypi/simple --trusted-host mirrors.xx.com
python3 -m pip install six --index-url=http://mirrors.xx.com/pypi/simple --trusted-host mirrors.xx.com
python3 -m pip install joblib --index-url=http://mirrors.xx.com/pypi/simple --trusted-host mirrors.xx.com
python3 -m pip install k-means-constrained==0.5.1 --index-url=http://mirrors.xx.com/pypi/simple --trusted-host mirrors.xx.com
echo "Python dependency install success"
posted @ 2021-11-04 19:30  SpecialSpeculator  阅读(144)  评论(0编辑  收藏  举报