Installation from Source

Python Version

neo-cli only support Python 3 or newer.

Don’t worry if you don’t have Python3 installed. It’s save to install Python3 alongside Python2. Both have different installation location.

You can get python3 from your distro (GNU/Linux distribution) repository.

$ sudo apt-get install python3

Use python3 instead of python when you want to use python3.

which help you tell you what program you are using (e.g which python3)

pip

Get the pip for python3 with the following steps

$ curl -O https://bootstrap.pypa.io/get-pip.py
$ sudo python3 get-pip.py

Then use pip with pip3.

Another way is to get it from your distro repository

$ sudo apt-get install python3-pip

Virtual environments

We strongly recommend using virtual environments to manage dependencies of your project.

$ sudo apt-get install python3-venv

Make new virtual environments with

$ python3 -m venv yourvenvname

Active the venv (virtual environments) with

$ source yourvenvname/bin/activate

Check if it’s activated with

$ which python3

If the output point to yourvenvname location. Then you are set.

Deactivate venv with

$ deactivate

Dependencies

Dependencies are located in requirements.txt

Grab those dependencies with

$ pip3 install -r requirements.txt

Install neo-cli from Source

$ pip3 install -e .

Test if neo-cli installed correctly

$ neo --help

If you get the help output from neo-cli. Then you are ready to have fun.