一聚教程网:一个值得你收藏的教程网站

热门教程

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

时间:2022-06-30 20:50:21 编辑:袖梨 来源:一聚教程网

[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

 

 

热门栏目