centos7.6初始化python3.6環境

環境:python

  CentOS Linux release 7.6.1810 (Core) 緩存

  Python3.6.xurl

0一、檢測yum源

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

yum clean all && yum makecache && yum repolist     ###清理本地緩存庫及拉取最新的code

0二、安裝python36

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

[root@beng yum.repos.d]# python3 -V   ###驗證
Python 3.6.8ip

0三、配置國內pypi源

vi ~/.pip/pip.conf     ###對當前帳戶有效ci

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

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

0四、python交互環境ipython

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

pip3 install numpy scipy pandas   ###安裝科學庫pandas

相關文章
相關標籤/搜索