[Python] Linux下python install

tolilong發表於2017-03-07
python install
windows安裝下載好了軟體後,下一步下一步安裝就好了.

如下是linux安裝.
[root@mysql ~]# wget

[root@mysql ~]# tar -xvf Python-3.6.0.tar.xz

[root@mysql Python-3.6.0]# ./configure --prefix=/usr/local/python36

[root@mysql Python-3.6.0]# make

[root@mysql Python-3.6.0]# make install

/root/.bashrc中加入如下快捷方式:
alias python3='/usr/local/python36/bin/python3.6'
[root@mysql bin]# source /root/.bashrc

[root@mysql bin]# python3
Python 3.6.0 (default, Mar  2 2017, 22:51:01)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-2134877/,如需轉載,請註明出處,否則將追究法律責任。

相關文章