centos7.6初始化python3.6环境

环境:

  CentOS Linux release 7.6.1810 (Core) 

  Python3.6.x

01、检测yum源

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo   ###aliyun-mirrors

yum clean all && yum makecache && yum repolist     ###清理本地缓存库及拉取最新的

02、安装python36

yum install -y python36 python36-pip    ### yum search python3,查看存在的rpm

[root@beng yum.repos.d]# python3 -V   ###验证
Python 3.6.8

03、配置国内pypi源

vi ~/.pip/pip.conf     ###对当前账户有效

[global]
index-url=http://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com

04、python交互环境ipython

pip3 install ipython   ### yum install -y python36-ipython_genutils

pip3 install numpy scipy pandas   ###安装科学库

posted @ 2019-05-19 17:05  mvpbang  阅读(706)  评论(0编辑  收藏  举报