Skip to main content

Install IAMbic via Python Wheel

Pre-requisites​

  • Python 3.11 or later

Install Python if you have not already​

To download IAMbic from PyPI, you will need to ensure that Python is installed on your machine. Here are two methods for installing Python:

Method 1: Python​

  1. Go to the Python Downloads page and download and install Python 3.11 or later.
  2. Create a virtual environment and install IAMbic by running the following commands:
# Create a directory for your iambic templates if you didn't already create one
mkdir iambic-templates
cd iambic-templates

# Create a virtual environment to store iambic and its dependencies
python -m venv venv
. venv/bin/activate

# Install IAMbic
pip install iambic-core

Test by running iambic --help

  1. Install pyenv by following the instructions on their GitHub page. (brew install pyenv on Mac)
  2. Install pyenv-virtualenv by following the instructions on their GitHub page. (brew install pyenv-virtualenv on Mac)
  3. Create a virtual environment and install IAMbic by running the following commands:
# Install the desired version of Python (replace 3.11 with your desired version).
pyenv install 3.11
# Set the Python version globally with `pyenv global 3.11` or locally within a folder with `pyenv local 3.11`.
pyenv local 3.11
# Create a virtual environment (replace 3.11 and iambic with your desired version and environment name).
pyenv virtualenv 3.11 iambic
# Activate the virtual environment
pyenv activate iambic
# Install IAMbic
pip install iambic-core

Test by running iambic --help