Skip to content

Latest commit

 

History

History
70 lines (52 loc) · 2.18 KB

how-to-install-ianvs.md

File metadata and controls

70 lines (52 loc) · 2.18 KB

How to install Ianvs

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.

Prerequisites

  • 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

Install ianvs on Linux

Create virtualenv

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.

Download ianvs project

cd ~
git clone https://github.com/JimmyYang20/ianvs.git    

Install third-party dependencies

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

Install ianvs

python setup.py install  

Check the installation

ianvs -v

If the version information is printed, Ianvs is installed successful.

About Windows

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.