This document is focused on to get AlectioSDK setup for Mac and Linux based OS.
Here is the workflow to get everything setup
First let make sure we have python 3.6+ installed.
Run:
source ~/.bashrc
this should change you terminal prompt to (base) as prefix. If is does not then lets install python:
sudo yum update -y
sudo yum install -y epel-release
sudo yum install -y python36 python36-pip python36-devel
For Debian Based OS
sudo apt update -y
sudo apt install -y python36 python36-pip python36-dev
For Mac OS
Make sure you have installed HomeBrew, it's a package manager, it optional but highly recommended. If you have not done so then. You then can use the following to install it:
# HomeBrew Install script
/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/master/install.sh>)"
echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >> ~/.bashrc
source ~/.bashrc
brew install [email protected]
You can also following official python website instructions to install python 3.6+ or you can install Anaconda. More info here: Anaconda Python, Official Python
Now we will need to install gcc if you already have gcc installed then you can skip this step. gcc is needed to compile several python that are needed.
Also let's install other packages like git, wget and unzip. Again if you have them already please feel free to skip them
Red Hat Based
sudo yum install -y gcc
sudo yum install git -y
sudo yum install wget -y
sudo yum install unzip -y
Debian Based
sudo apt install -y gcc
sudo apt install git -y
sudo apt install wget -y
sudo apt install unzip -y