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

作者:简简单单 2016-08-05

[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

 

 

相关文章

精彩推荐