LoginSignup
0
1

More than 3 years have passed since last update.

さくらのレンタルサーバで Python をまた野良ビルドした (備忘録)

Last updated at Posted at 2019-04-18

さくらのレンタルサーバで Python をまた野良ビルドした (備忘録)

自作アンテナが HTTPS でエラーを出しまくっていて、Python 2.7.6 から 2.7.16 にアップデートしたので、手順を備忘録として(2019-04-17).

$ cd /home/xxx/local/src/
$ wget https://www.python.org/ftp/python/2.7.16/Python-2.7.16.tar.xz
$ xz -dc Python-2.7.16.tar.xz | tar xf -
$ cd Python-2.7.16
$ ./configure --prefix=/home/xxx/local/python-2.7.16
$ make
$ make install
$ cd ../../python-2.7.16/bin
$ wget https://bootstrap.pypa.io/get-pip.py
$ ./python get-pip.py --prefix=/home/xxx/local/python-2.7.16
$ rm get-pip.py
$ ./pip install Genshi
$ ./pip install mercurial
$ ./pip install SQLAlchemy
$ cd ../../
$ rm python
$ ln -s /home/xxx/local/python-2.7.16 python

インストールされたバージョンは以下.

pip        19.0.3
Genshi     0.7.1
SQLAlchemy 1.3.3
mercurial  4.9.1

新しいものに入れ替えた(2021-01-05).

$ cd /home/xxx/local/src/
$ wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz
$ xz -dc Python-2.7.18.tar.xz | tar xf -
$ cd Python-2.7.18
$ ./configure --prefix=/home/xxx/local/python-2.7.18
$ make
$ make install
$ cd ../../python-2.7.18/bin
$ wget https://bootstrap.pypa.io/get-pip.py
$ ./python get-pip.py --prefix=/home/xxx/local/python-2.7.18
$ rm get-pip.py
$ ./pip install Genshi
$ ./pip install SQLAlchemy
$ cd ../../
$ rm python
$ ln -s /home/xxx/local/python-2.7.18 python

インストールされたバージョンは以下.

pip        20.3.3
Genshi     0.7.5
SQLAlchemy 1.3.22

関連: さくらのレンタルサーバで Python 3 を野良ビルドした (備忘録)

0
1
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
1