• 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"
    
    原创:做时间的朋友
  • 相关阅读:
    java.lang.ArrayIndexOutOfBoundsException异常分析及解决
    Android_开发片段(Part 2)
    保存错误日志回传服务器之回传错误“信息文件”
    node.js
    拼接json
    CommonJS / Node.js/ Vue学习资料
    合并PDF
    java 多线程
    linux 运行jar包
    mvn 命令
  • 原文地址:https://www.cnblogs.com/PythonOrg/p/15509876.html
Copyright © 2020-2023  润新知