LoginSignup
46
47

More than 5 years have passed since last update.

Python 3.4.3のインストール

Posted at

Python3.4.3のインストール

ダウンロード

  • 以下のサイトからダウンロードするバージョンを探す
$ wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz

インストール

  • 事前に必要となるパッケージをインストール
$ yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel
  • Pythonをインストール
    • prefixでインストールするディレクトリを指定
$ tar zxvf Python-3.4.3.tgz
$ cd Python-3.4.3
$ ./configure --prefix=/usr/local/python
$ make && make install
  • シンボリックリンクを作成
    • pipはpythonのパッケージマネージャ
$ ln -s /usr/local/python/bin/python3 /usr/local/bin/python
$ ln -s /usr/local/python/bin/pip3.4 /usr/local/bin/pip
  • バージョンを確認
    • 変わっていなかったらログインし直すと変わる
$ python --version
$ pip --version
46
47
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
46
47