湖濱散記部落格的樹心幽徑[login][主頁]
520:20191026在Ubuntu LINUX 安裝python 3. 8.0

REF 1:https://www.itread01.com/content/1545070623.html

(1)$ sudo apt-get install build-essential checkinstall

(2)$ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

(3)$ wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz

(4)$ tar xzf Python-3.8.0.tgz

(5)$ cd Python-3.8.0/

         $ ./configure --enable-optimizations

(6)$ sudo make altinstall

(7)$ python3.8
Python 3.8.0 (default, Oct 26 2019, 13:01:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

(8)$ python3.8 -V
Python 3.8.0

(9)$ python -V  (系統內建的舊版python)
Python 2.7.12

 

 


select id,article_id,topic,text from lt_articles_text where article_id =520; ok. update lt_articles set num_reads=num_reads +1 where id=520; ok.