DIY AI: Installation manuals

This is a collection of “how to install things” supporting DIY AI series

Most of the software I use in DIY AI series has become a lot more user friendlier during last years. However, developing AI / ML systems will require to know how to use the console and installing some console tools. This story tries to collect all the links and manuals in one place.

Personally I use Mac but I will try to add information for other systems where possible.


Package management

  • on Mac, install Homebrew — I use it the most unless mentioned otherwise
  • on Linux, use your built-in package manager — for Ubuntu, it is apt


  • for Mac, use brew install python for Python 2.7 or brew install python3 for Python 3
  • for Linux, use your package manager (apt-get install python3 or similar command)

Most Python projects include dependencies (specified in requirements.txt file) that can be installed via pip install command (after you have installed python).

Last but not least, I recommend a good Python IDE — the best one is PyCharm, just go here — — to download free community edition.

PyCharm will allow to to code your scripts, run them (via Ctrl + R) or debug (via Ctrl + D). If you are very new to Python or feel a bit rusty, I recommend taking a Python course from Codecademy (it is free!).

Python 2 vs Python 3


When working with python 3 most of the tools are postfixed with letter 3 — pip becomes pip3, python becomes python3 and so on, which should be take in account when working with multiple python versions.


You can install virtualenv following the official guide here: . To create a virtual environment in a particular folder, run virtualenv .; if you need a different version of Python, pass the executable path as the -p switch, like so: virtualenv . -p /usr/local/bin/python3.

To use (start) virtualenv, you need to execute source bin\activate (or bin\activate.bat on Windows) — see explanation here: .

When virtualenv is activated, you will see an addition to your command prompt with virtual environment name:

(venv1) # ~/Documents/nn/venv

If you see this prompt, then all commands (pip, python, etc) will be executed in your virtualenv configuration and all packages will be installed locally.

In most cases, lib/ and bin/ folders created by virtualenv are put into .gitignore file.


You should install fann from here —

For Mac, you can do brew install fann instead of installing manually.

Afterwards, you need to install python bindings — pip install fann2

I write about things I wonder about

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store