Installation

Requirements

Supported Python versions: 2.7, 3.4, 3.5, 3.6, 3.7

Python 3.5 or more is recommended.

Linux

On Linux, some extra packages are required:

  • Pip is required.
  • Depending on the Python version, host targeted and wheel format availability, a C/C++ compiler may also be required for install dependencies. In this case, GCC (Or another compatible compiler) & Python-dev packages are required.

Use the package manager of the Linux distribution to install packages.

RHEL or CentOS 7:

The EPEL repository is required to install packages.

-dev package suffix is renamed -devel on RHEL/CentOS.

Python 2.7 is the only Python version installed by default on RHEL/CentOS 7. But installation of Python 3.6 is possible.

Python 3:

sudo yum install gcc python36 python36-pip python36-devel -y

Use python36 instead of python and pip36 instead of pip to call Python and Pip from this point on.

Python 2:

sudo yum install gcc python-pip python-devel -y

Debian or Ubuntu:

Python 3: (Debian 8 Jessie/Ubuntu 14.04 Trusty and more)

Python 3 packages are prefixed python3- instead of python-.

sudo apt-get install gcc python3-pip python3-dev

Use python3 instead of python and pip3 instead of pip to call Python and Pip from this point on.

Python 2:

sudo apt-get install gcc python-pip python-dev

Windows

Python for Windows is available on the Python Website.

Depending on the Python version, the host targeted, and wheel format availability, a C/C++ compiler may also be required to install dependencies.

Setup

All installation is performed using PIP.

The base package with all features and AWS support can be installed with:

pip install apyfal

Some extra host type are supported as optional components.

You can also install these optional extras:

  • all: Install all extras.
  • Alibaba: Requirements for Alibaba.
  • AWS: Requirements for AWS (Installed by default).
  • OpenStack: Requirements for OpenStack.

Example for installing the all extra:

pip install apyfal[all]

Example for installing the OpenStack + Alibaba extras:

pip install apyfal[OpenStack,Alibaba]