Quick Installation
Pockit itself is a pure Python library, but it depends on the binary library IPOPT for solving nonlinear programming problems. The basic installation steps are:
- Install dependencies
- Download the code from the GitHub repository and copy the
pockit
folder to the working directory
X86
The simplest way to install pockit and its dependencies is to use conda:
- Install Anaconda, Miniconda, or Miniforge
- Create a new environment and activate it (with Python version 3.11 or 3.12)
conda create -n pockit python=3.12 conda activate pockit
- Install dependencies
conda install -c conda-forge --file requirements.txt
- Copy the pockit code folder to the working directory
- (Optional) Install other potentially useful libraries
conda install -c conda-forge matplotlib jupyter
ARM (Apple Silicon)
The conda-forge repository currently does not have IPOPT binaries for the ARM architecture. For macOS, you can install IPOPT via homebrew:
- Install IPOPT
brew install ipopt
- Create a new environment and activate it
conda create -n pockit python=3.12 conda activate pockit
- Install dependencies (at this point, you should use pip instead of conda, to utilize the IPOPT installed on the system)
pip install -r requirements.txt
- Copy the pockit code folder to the working directory
- (Optional) Install other potentially useful libraries
pip install matplotlib jupyter