How can I install Pyomo's “extras” using pip?

后端 未结 2 2041
礼貌的吻别
礼貌的吻别 2021-01-29 03:19

I am writing because I am having trouble installing Pyomo using pip on Python 3.6 on Mac OSX 10.14

I\'m following the installation instructions here.

相关标签:
2条回答
  • 2021-01-29 03:35

    I got the problem too (in Ubuntu 18.04).

    Try installing it from the git project (https://github.com/Pyomo/pyomo):

    In Ubuntu 18.04:

    git clone https://github.com/Pyomo/pyomo.git
    python3 pyomo/scripts/get_pyomo_extras.py
    

    Use the corresponding commands for Mac OSX (I had never used it).

    I hope that it works for you.

    0 讨论(0)
  • 2021-01-29 03:40

    This is a documented issue on the github for Pyomo: https://github.com/Pyomo/pyomo/issues/243

    They don't appear to have solved the pip installation of pyomo extras.

    However, if you have conda installed - https://docs.conda.io/en/latest/

    You should be able to use the terminal commands from:

    https://pyomo.readthedocs.io/en/latest/installation.html

    run this in terminal after conda has been successfully installed:

    conda install -c conda-forge pyomo.extras
    

    I know this isn't pip, but it's at least a workaround until pyomo fixes their documentation.

    • confirmed working on python 3.x and ubuntu 18.04
    0 讨论(0)
提交回复
热议问题