Python3.6 安装配置

  1. 安装依赖:
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
  1. 确认安装 gcc
  2. 编译安装:python3.6
# ./configure
# make
# make altinstall
  1. 安装wheel:
# pip3.6 install wheel
  1. 安装常用包
# pip3.6 install numpy
# pip3.6 install pandas
# pip3.6 install matplotlib
# pip3.6 install requests
# pip3.6 install scipy
# pip3.6 install pypiwin32
# pip3.6 install Scikit-learn
# pip3.6 install TensorFlow
  1. 包下载地址
http://www.lfd.uci.edu/~gohlke/pythonlibs/

7.修改源
修改配置文件:~/.pip/pip.conf

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com

你可能感兴趣的:(Python3.6 安装配置)