Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.29 KB

File metadata and controls

58 lines (38 loc) · 1.29 KB

Installation

There are mainly two separate ways to install portal-client:

  1. Using pip
  2. Using VirtualEnv

The portal client requires Python 3, the Boto 3 library, and the Google storage library:

Using pip

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 .
  

Using VirtualEnv

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.

  1. Create a virtual environment
python3 -m venv /path/to/venvs/portal-client
  1. Activate the virtual environment
source /path/to/venvs/portal-client/bin/activate
  1. Install the portal-client into the virtual environment
pip3 install .

This will retrieve and install the dependencies as well.