1. 程式人生 > >centos6安裝python3.6.1

centos6安裝python3.6.1

簡略記載:

如果安裝過程中出現:

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_bz2                  _curses               _curses_panel      
_dbm                  _gdbm                 _hashlib           
_lzma                 _sqlite3              _ssl               
_tkinter              _uuid                 readline      

解決:安裝如下依賴:

# yum -y install gcc-c++ openssl-devel \
    zlib-devel libffi-devel readline-devel  \
    bzip2-devel ncurses-devel sqlite-devel \
    gdbm-devel xz-devel tk-devel libuuid-devel 

借鑑連結:

Python版本選擇與安裝