Setup environment on ITO at Kyushu University Supercomputer

Table of Contents

A new supercomputer ITO at Kyushu University can be used as a trial and I will set up its subsystem B.

Install Anaconda

To avoid conflict with the pre-installed Python system, pyenv is installed and used to create a virtual environment.

Install pyenv

Pyenv can be easily installed as follows:
[cc]
$ cd ~
$ git clone git://github.com/yyuu/pyenv.git .pyenv
[/cc]

Edit ~/.bashrc

Add the following in .bashrc:
[cc]
export PYENV_ROOT="${HOME}/.pyenv"
if [ -d "${PYENV_ROOT}" ]; then
export PATH=${PYENV_ROOT}/bin:$PATH
eval "$(pyenv init -)"
fi
[/cc]
You can take a look at available software and its versions:
[cc]
$ pyenv install -l
[/cc]

Install Anaconda

The newest version of Anaconda3 should be installed:
[cc]
$ pyenv install anaconda3-5.0.1
[/cc]

check available versions

You can check the available versions and find that "system" is the current environment because * is appended.
[cc]
$ pyenv versions
* system (set by /home/usr1/account/.pyenv/version)
anaconda3-5.0.1
[/cc]
You can switch to anaconda3-5.0.1 as follows:
[cc]
$ pyenv global anaconda3-5.0.1
[/cc]
Now you can confirm anaconda3-5.0.1 is the current environment as * is appended:
[cc]
$ pyenv versions
system
* anaconda3-5.0.1 (set by /home/usr1/m70161a/.pyenv/version)
[/cc]

Invoke python

Now you can invoke python 3.6.3 by Anaconda as follows:
[cc]
$ python
Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[/cc]
You can exit by typing quit().
You can use IPython but you may not be able to use Jupyter Notebook even if you have an X client like XcXsrv. I also do not know how to invoke Firefox.

Setup environment on ITO at Kyushu University Supercomputer” に対して1件のコメントがあります。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください