1. Home
  2. bloXroute Documentation
  3. Gateway Installation
  4. pip Installation

pip Installation

It’s best to run the Gateway inside of a virtual environment, especially if your system’s default Python version is not 3. You may need to substitute pip3 for pip and/or add Python binaries to your PATH (usually PATH=$PATH:~/.local) for the following commands to work. The bloXroute Gateway is not compatible with Python 2.
 
The bloXroute Gateway is optimized for Ubuntu, CentOS, and Alpine Linux, but should run fine on any Unix based system. bloxroute-gateway is not compatible with Windows.

Install OS dependencies:

 
Ubuntu:
apt install python3-dev gcc
 
CentOS:
yum install gcc libffi-devel
 
Alpine Linux:
apk add build-base automake libtool libffi-dev python3-dev linux-headers

Install:

pip install requests==2.19.1 distro

pip install bloxroute-gateway

Running:

bloxroute_gateway --blockchain-protocol [blockchain-protocol] --blockchain-network [blockchain-network] --blockchain-ip [blockchain node’s ip] --blockchain-port [blockchain node’s port] --node-public-key=”[geth’s public key]” --external-ip=[the gateway server public ip]

 
For more information on the startup arguments, see Startup Arguments.

To run more than one pip Gateway on the same machine, each Gateway should have different values for the following five parameters (default values are available here) at startup:

--external-port, --non-ssl-port, --rpc-port, --data-dir, --ws-port 

For more help, follow along with our step-by-step video tutorial.