There are mainly two separate ways to install portal-client:
- Using pip
- Using VirtualEnv
The portal client requires Python 3, the Boto 3 library, and the Google storage library:
Another tool that is commonly used to install Python modules is pip. To use pip to install portal-client, download the source code as shown above, then invoke pip as root or using sudo:
$ cd portal-client
$ sudo pip3 install .
An easy way to install portal-client and the necessary dependencies is to use VirtualEnv and pip (or pip3 on some systems). The following commands assume you already have VirtualEnv installed on your system and the portal-client software downloaded.
- Create a virtual environment
python3 -m venv /path/to/venvs/portal-client- Activate the virtual environment
source /path/to/venvs/portal-client/bin/activate- Install the portal-client into the virtual environment
pip3 install .This will retrieve and install the dependencies as well.