Linux之CentOS 7 安装Python 3.4.5 和iPython 5.0

[[email protected] ~]# mkdir -p /tmp/python3
[[email protected] ~]# cd /tmp/python3/
[[email protected] /tmp/python3]# yum install readline-devel sqlite-devel gcc make openssl openssl-devel zlib* -y
[[email protected] /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
[[email protected] /tmp/python3]# ./configure --prefix=/usr/local/python3 && make -j$(getconf _NPROCESSORS_ONLN) && make install
[[email protected] /tmp/python3]# echo 'export PATH=/usr/local/python3/bin:$PATH' > /etc/profile.d/py3.sh && . /etc/profile.d/py3.sh
[[email protected] /tmp/python3]# curl https://bootstrap.pypa.io/get-pip.py | python3
[[email protected] /tmp/python3]# pip3 install jupyter
[[email protected] /tmp/python3]# ipython -c "print ('hello')"
hello
[[email protected] /tmp/python3]# ipython -V
5.0.0

Linux之CentOS 7 安装Python 3.4.5 和iPython 5.0

  • 本文由 发表于 2016年7月26日02:43:41
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
匿名

发表评论

匿名网友 填写信息

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