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

我们两清 提交于 2019-12-02 08:55:49

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

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!