首页 > 编程语言 > 详细

centos7.6初始化python3.6环境

时间:2019-05-19 18:23:38      阅读:102      评论:0      收藏:0      [点我收藏+]

环境:

  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   ###安装科学库

centos7.6初始化python3.6环境

原文:https://www.cnblogs.com/xiaochina/p/10889868.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!