Skip to main content

2. Setup Environment

Clone our repository

Clone our repository

git clone https://github.com/masa-finance/masa-bittensor.git

Navigate to the root directory

cd masa-bittensor

Get the latest release

latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)

Checkout the latest release

git checkout $latest_tag

Install PM2

info

PM2 is a process manager that helps you manage and keep your node running. For more information on PM2 commands and usage, refer to the PM2 Documentation.

sudo apt update
sudo apt install nodejs npm
sudo npm install -g pm2

Install Python & Venv

sudo apt install python3
sudo apt install python3-venv

Create Virtual Environment

python3 -m venv bittensor

Activate Virtual Environment

source bittensor/bin/activate

Install Required Packages

pip install -e .