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"

相关文章:

  • 2021-10-14
  • 2021-07-18
  • 2021-10-10
  • 2021-06-12
  • 2021-05-05
  • 2022-03-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-14
  • 2021-10-17
  • 2021-08-08
  • 2022-12-23
  • 2021-08-18
  • 2021-07-28
  • 2021-04-25
相关资源
相似解决方案