[Python] How to install cplex python API on mac os

Discussão em 'Python' iniciado por Stack, Fevereiro 2, 2025.

  1. Stack

    Stack Membro Participativo

    I am using mac M1 with Sonoma 14.5 and trying to install the cplex warper for Python. CPLEX 22.1.1. is already installed on my machine and works with docplex, the IDE and oplrun.

    When trying to install the "cplex" package under conda environment using

    conda install ibmdecisionoptimization::cplex

    which works perfectly under Linux. I get the message


    PackagesNotFoundError: The following packages are not available from current channels:

    - ibmdecisionoptimization::cplex

    Current channels:

    - https://conda.anaconda.org/nodefaults
    - https://conda.anaconda.org/conda-forge
    - defaults
    - https://conda.anaconda.org/ibmdecisionoptimization

    To search for alternate channels that may provide the conda package you're
    looking for, navigate to

    https://anaconda.org

    and use the search bar at the top of the page.


    Any ideas?

    I tried it with conda environment of Python 3.9, 3.10 and 3.11. Clearly, I checked the link above but it send me back to square one.

    The same trick works well for the docplex package.

    Any ideas?

    Continue reading...

Compartilhe esta Página