- 安装依赖:
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
- 确认安装 gcc
- 编译安装:python3.6
# ./configure
# make
# make altinstall
- 安装wheel:
# pip3.6 install wheel
- 安装常用包
# 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
- 包下载地址
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