Linux之CentOS 7 安装Python 3.4.5 和iPython 5.0

  • A+
所属分类:Linux  Python
[root@DS-VM-Node250 ~]# mkdir -p /tmp/python3
[root@DS-VM-Node250 ~]# cd /tmp/python3/
[root@DS-VM-Node250 /tmp/python3]# yum install readline-devel sqlite-devel gcc make openssl openssl-devel zlib* -y
[root@DS-VM-Node250 /tmp/python3]# URL=https://www.python.org/ftp/python && curl -Lk $(curl -Lks "${URL}"|awk -F'[/"]' '{if($2~/^3/)a=$2}END{print "'${URL}'/"a"/Python-"a".tar.xz"}')|tar -xJ -C /tmp/python3 --strip-components=1
[root@DS-VM-Node250 /tmp/python3]# ./configure --prefix=/usr/local/python3 && make -j$(getconf _NPROCESSORS_ONLN) && make install
[root@DS-VM-Node250 /tmp/python3]# echo 'export PATH=/usr/local/python3/bin:$PATH' > /etc/profile.d/py3.sh && . /etc/profile.d/py3.sh
[root@DS-VM-Node250 /tmp/python3]# curl https://bootstrap.pypa.io/get-pip.py | python3
[root@DS-VM-Node250 /tmp/python3]# pip3 install jupyter
[root@DS-VM-Node250 /tmp/python3]# ipython -c "print ('hello')"
hello
[root@DS-VM-Node250 /tmp/python3]# ipython -V
5.0.0

Linux之CentOS 7 安装Python 3.4.5 和iPython 5.0

lookback

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: