0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu環境へのPythonのインストール

0
Posted at

Pythonのインストール

・Pythonのバージョンの指定

$ PYTHON="3.xx.x"

・Pythonのインストーラの取得

$ wget -q "https://www.python.org/ftp/python/${PYTHON}/Python-${PYTHON}.tar.xz"

・インストーラの解凍

$ tar xvf Python-${PYTHON}.tar.xz

・解凍後のディレクトリへ移動

$ cd Python-${PYTHON}

・スクリプトファイル(configure)を実行

$ ./configure --enable-optimizations --without-ensurepip --enable-loadable-sqlite-extensions

・インストール

$ make -j 8
$ make install

・カレントディレクトリの移動

$ cd ../

・インストーラの消去

$ rm -rf Python-${PYTHON}

・バージョンの確認

$ python3 -V

・シンボリックリンクの作成($ python xxx.pyが実行可能になる)

$ ln -s /usr/local/bin/python3 /usr/local/bin/python

pip(PyPI)のインストール

・pipのインストール

curl -kL https://bootstrap.pypa.io/get-pip.py | python

・インストールの確認

pip --version
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?