Skip to main content

Python interface to LINDO API

Project description

The Python Interface to LINDO API.

This package requires LINDO API and a valid license key. Please refer to lindoapi/readme.html for LINDO API installation details.

Installation for LINDO API 15

This python package can be installed with pip

For administrative users:

> pip install lindo

For standard (non-administrative) users:

> pip install lindo --user

Installation for LINDO API 14

This python package can be installed with pip

For administrative users:

> pip install lindo==14.0.0

For standard (non-administrative) users:

> pip install lindo==14.0.0 --user

Testing

A quick way to test the installation is to run

> python -m lindo_test

You can also try out the samples by

> python samples/lp.py

Possible errors due to misconfiguration

You may get the following error if your LINDOAPI_HOME environment variable is not set up.

Error: Environment variable LINDOAPI_HOME should be set

To fix the problem follow these steps

Using Windows

On the command line

> setx LINDOAPI_HOME "c:/lindoapi" 

Using Mac or Linux

On the command line

For administrative users:

$ export LINDOAPI_HOME="/opt/lindoapi"	

For standard (non-administrative) users:

$ export LINDOAPI_HOME="~/opt/lindoapi"	

To have this variable set automatically, add the above line to your ~/.bashrc or ~/.bash_profile file.

For Mac Users

The LINDO api has two version that could be compatible with your machine osx64x86 and arm64. If you are using osx64x86 then your Python distribution must have been installed on an Intel Mac or using Rosetta, otherwise it will target arm64 .whl files when using pip. Similarly, if you are using a M1/M2 Mac when Python was installed on your machine Rosetta should have been disabled. The LINDO api supports Python 3.7-3.10 on osx64x86 and Python 3.10 on arm64.

How to Build Wheel and Install (for package managers)

To build the python package on any operating system first start by creating a whl file. From the top of the lindoapi-python directory run the command.

> python -m build

If the command is successful a new directory named dist is created in the lindoapi-python directory. The new directory will have a two files with extension .whl and .tar.gz. For example, if you built it on Mac OS using Python 3.10 the new directory will look like this.

├── dist
│  ├── lindo-x.y.z-cp310-cp310-macosx_10_9_universal2.whl
│  └── lindo-x.y.z.tar.gz

The package can now be installed locally using the command.

> pip install dist/*.whl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

lindo-15.0.1-cp312-cp312-win_amd64.whl (128.3 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

lindo-15.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.3 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

lindo-15.0.1-cp312-cp312-macosx_10_9_x86_64.whl (218.3 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

lindo-15.0.1-cp312-cp312-macosx_10_9_arm64.whl (218.2 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ ARM64

lindo-15.0.1-cp311-cp311-win_amd64.whl (128.2 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

lindo-15.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

lindo-15.0.1-cp311-cp311-macosx_10_9_x86_64.whl (218.0 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

lindo-15.0.1-cp311-cp311-macosx_10_9_arm64.whl (217.9 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ ARM64

lindo-15.0.1-cp310-cp310-win_amd64.whl (128.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

lindo-15.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

lindo-15.0.1-cp310-cp310-macosx_10_9_x86_64.whl (217.9 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

lindo-15.0.1-cp39-cp39-win_amd64.whl (130.8 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

lindo-15.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

lindo-15.0.1-cp39-cp39-macosx_10_9_x86_64.whl (218.0 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

lindo-15.0.1-cp38-cp38-win_amd64.whl (130.8 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

lindo-15.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

lindo-15.0.1-cp38-cp38-macosx_11_0_x86_64.whl (127.0 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ x86-64

lindo-15.0.1-cp37-cp37m-win_amd64.whl (130.8 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

lindo-15.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.3 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

lindo-15.0.1-cp37-cp37m-macosx_11_0_x86_64.whl (127.0 kB view hashes)

Uploaded CPython 3.7m macOS 11.0+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page