It is recommended to use Ianvs on Linux machine. But for quick algorith development, windows is also planed to support, to reduce the configuration cost of development environment.
This guide covers how to install Ianvs on a Linux environment.
- One machine is all you need, i.e., a laptop or a virtual machine is sufficient and cluster is not necessary
- 2 CPUs or more
- 4GB+ free memory, depends on algorithm and simulation setting
- 10GB+ free disk space
- Internet connection for github and pip, etc
- Python 3.6+ installed
you can check the python version by the following command:
python -V
after doing that, the output will be like this, that means your version fits the bill.
Python 3.6.9
sudo apt install -y virtualenv
mkdir ~/venv
virtualenv -p python3 ~/venv/ianvs
source ~/venv/ianvs/bin/activate
If you prefer conda, you can create a python environment by referring to the creating steps provided by conda.
cd ~
git clone https://github.com/JimmyYang20/ianvs.git
sudo apt update
sudo apt install libgl1-mesa-glx -y
cd ~/ianvs
python -m pip install ./examples/resources/third_party/*
python -m pip install -r requirements.txt
python setup.py install
ianvs -v
If the version information is printed, Ianvs is installed successful.
At the time being, package requirements of Ianvs is only applicable for Linux, to ensure comprehensive support from Linux ecosystem and to ease the burden of manual installation for users in Windows.
If you are more used to develop on Windows, you can still do so with remote connections like SSH from Windows connecting to a Linux machine with ianvs installed. Such remote connection is already supported in common Python coding tools like VScode, Pycharm etc. By doing so, it helps to provide efficient installation and robust functionality of Ianvs.