Python3.6.7をインストールしてみる。
% wget https://www.python.org/ftp/python/3.6.7/Python-3.6.7.tar.xz --no-check- certificate --2018-12-11 23:50:04-- https://www.python.org/ftp/python/3.6.7/Python-3.6.7.tar.xz Resolving www.python.org... 151.101.228.223, 2a04:4e42:11::223 Connecting to www.python.org|151.101.228.223|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 17178476 (16M) [application/octet-stream] Saving to: 'Python-3.6.7.tar.xz' Python-3.6.7.tar.xz 100%[==============================>] 16.38M 33.3MB/s in 0.5s 2018-12-11 23:50:05 (33.3 MB/s) - 'Python-3.6.7.tar.xz' saved [17178476/17178476] --2018-12-11 23:50:05-- http://certificate/ Resolving certificate... failed: hostname nor servname provided, or not known. wget: unable to resolve host address 'certificate' FINISHED --2018-12-11 23:50:05-- Total wall clock time: 0.6s Downloaded: 1 files, 16M in 0.5s (33.3 MB/s)
次に.cshrcを編集。
vi .cshrc
次のように編集する。
追加したのは下記の部分。
set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/b in) ↓ set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/b in $HOME/local/python/bin) 下記追加 setenv PYTHON $HOME/local/python/lib
一度ターミナルを閉じて、再度SSH接続。以下のように 3.6.7 のPython3が使えるようになった。