Python 3.6.0 をインストールする際に出てくる警告に対処する(Ubuntu 16.04 LTS)

Python 3.6.0 のインストール

Python 3.6.0(おそらくは 3.5.0 以上)をインストールした際に次のような警告が出てくることがあります。

Installing Python-3.6.0...
WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
WARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?

対応方法は以下のとおりです。入れ終わったら改めて Python 3.6.0 を上書きで入れ直しましょう。

# apt-get install -y libbz2-dev libreadline-dev libsqlite3-dev
Powered by はてなブログ