linux 安裝python3

一、 安裝gcc軟件

redhat   :  yum install gcc

suse linux :  yast ---->    gcc


二、安裝python3

# wget https://www.python.org/ftp/python/3.4.4/Python-3.4.4.tgz
# tar -zxf Python-3.4.4.tgz
# cd Python-3.4.4
# ./configure
# make
# make install

#測試是否成功
 # python3
Python 3.4.4 (default, Feb 11 2017, 04:46:28) 
[GCC 4.3.4 [gcc-4_3-branch revision 152973]] on linux
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
  File "/etc/pythonstart", line 7, in <module>
    import readline
ImportError: No module named 'readline'
>>>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章