I want to migrate Python 2.7 to Python 3 with EoL, but there is no sign that Python 3 will come to Sakura's rental server, so I built it myself.
$ cd /home/xxx/local/src/
$ wget https://www.python.org/ftp/python/3.8.3/Python-3.8.3rc1.tar.xz
$ xz -dc Python-3.8.3rc1.tar.xz | tar xf -
$ cd Python-3.8.3rc1
$ ./configure --prefix=/home/xxx/local/python-3.8.3rc1
$ make
$ make install
$ cd ../../python-3.8.3rc1/bin
% ./pip3 install --upgrade pip
$ ./pip3 install Genshi
$ ./pip3 install SQLAlchemy
$ ./pip3 install mercurial
$ cd ../../
$ ln -s /home/xxx/local/python-3.8.3rc1/ python3
$ cd bin
$ ln -s /home/cyanet/local/python3/bin/python3
Related: I built Python again on Sakura's rental server (Note) / Mercurial stopped working after migrating from Python 2 to Python 3 (Note)
Recommended Posts