您的位置:首页 > 运维架构 > Linux

CentOS 7 安装Python 3.4.5 和iPython 5.0的教程

2017-11-29 16:48 253 查看


     CentOS 7 安装Python 3.4.5 和iPython 5.0的教程

[root@DS-VM-Node250 ~]# yum install readline-devel sqlite-devel gcc make openssl
openssl-devel zlib* -y
[root@DS-VM-Node250 ~]# curl -Lk https://www.python.org/ftp/python/3.4.5/Python-3.4.5.tar.xz | xz -d | tar x -C ./ && cd Python-3.4.5/
[root@DS-VM-Node250 ~/Python-3.4.5]# ./configure --prefix=/usr/local/python_3.4.5 &&
make -j $(awk '/processor/{i++}END{print i}' /proc/cpuinfo) && make install
[root@DS-VM-Node250 ~/Python-3.4.5]# echo 'export PATH=/usr/local/python_3.4.5/bin:$PATH'
> /etc/profile.d/py3.sh && . /etc/profile.d/py3.sh
[root@DS-VM-Node250 ~/Python-3.4.5]# curl https://bootstrap.pypa.io/get-pip.py | python3.4
[root@DS-VM-Node250 ~/Python-3.4.5]# pip3 install jupyter
[root@DS-VM-Node250 ~/Python-3.4.5]# ipython -c "print ('hello')"
hello
[root@DS-VM-Node250 ~/Python-3.4.5]# ipython -V
5.0.0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: