iT邦幫忙

2018 iT 邦幫忙鐵人賽
DAY 29
0
Data Technology

Python自習手札系列 第 29

Python自習手札(29/30): CentOS7安裝Python3

Python3載點

https://www.python.org/ftp/python

下載

wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
tar xvf Python-3.6.0.tgz

安裝

[test@localhost ~]$ ls
Desktop    Downloads  Public        Python-3.6.0.tgz    Templates
Documents  Music      Pictures      Python-3.6.0        Videos
[test@localhost ~]$  cd Python-3.6.0/
[test@localhost Python-3.6.0]$ sudo ./configure --prefix=/usr/local
[test@localhost Python-3.6.0]$ sudo make
[test@localhost Python-3.6.0]$ sudo make install

試一試

[test@localhost ~]$ python3.6

來個Hello python

Python 3.6.0 (default, Jul 29 2017, 22:16:47) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print('Hellow Python')
Hellow Python
>>> exit()

上一篇
Python自習手札(28/30): 傳說中的IDE(Interactive Editor for Python)
下一篇
Python自習手札(30/30): Python3與舊版的切換
系列文
Python自習手札31
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言