How to install GEKKO using conda

2,254 views
Skip to first unread message

Niladri Chakraborty

unread,
Nov 14, 2018, 7:24:39 AM11/14/18
to apmo...@googlegroups.com
Hi,
I need to install gekko using conda install statement. Can you suggest me conda install statement for gekko. conda install gekko is not working

Thanks,
Niladri

John Hedengren

unread,
Nov 14, 2018, 8:08:46 AM11/14/18
to apmo...@googlegroups.com
You can install gekko on any Python distribution (including IPython, Jupyter notebook, Spyder, PyCharm, etc) with pip. You'll need to locate your Anaconda installation and then change directory to the Scripts folder. Once you are in the Scripts folder, you can perform the pip installation.

C:\Anaconda3\Scripts>pip install gekko
Collecting gekko
  Using cached https://files.pythonhosted.org/packages/89/96/64a24ea36a96fea247b97dbc1831155a4b899d37967473dc566d76170e9a/gekko-0.1b2-py3-none-any.whl
Requirement already satisfied: flask-cors in c:\anaconda3\lib\site-packages (from gekko) (3.0.4)
Requirement already satisfied: numpy>=1.8 in c:\anaconda3\lib\site-packages (from gekko) (1.14.3)
Requirement already satisfied: flask in c:\anaconda3\lib\site-packages (from gekko) (1.0.2)
Requirement already satisfied: Six in c:\anaconda3\lib\site-packages (from flask-cors->gekko) (1.11.0)
Requirement already satisfied: Werkzeug>=0.14 in c:\anaconda3\lib\site-packages (from flask->gekko) (0.14.1)
Requirement already satisfied: itsdangerous>=0.24 in c:\anaconda3\lib\site-packages (from flask->gekko) (0.24)
Requirement already satisfied: click>=5.1 in c:\anaconda3\lib\site-packages (from flask->gekko) (6.7)
Requirement already satisfied: Jinja2>=2.10 in c:\anaconda3\lib\site-packages (from flask->gekko) (2.10)
Requirement already satisfied: MarkupSafe>=0.23 in c:\anaconda3\lib\site-packages (from Jinja2>=2.10->flask->gekko) (1.0)
distributed 1.21.8 requires msgpack, which is not installed.
Installing collected packages: gekko
Successfully installed gekko-0.1b2


Another way to pip install gekko is the following that you can paste into any Python script or a cell in a Jupyter notebook:

module='gekko' try: from pip import main as pipmain except: from pip._internal import main as pipmain pipmain(['install',module])

The recommended way is to pip install from the command line but I just wanted to let you know that this is also available. We currently don't have a conda package for gekko, unfortunately.

-John Hedengren

--
--
APMonitor user's group e-mail list.
- To post a message, send email to apmo...@googlegroups.com
- To unsubscribe, send email to apmonitor+...@googlegroups.com
- Visit this group at http://groups.google.com/group/apmonitor
---
You received this message because you are subscribed to the Google Groups "apmonitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apmonitor+...@googlegroups.com.
To post to this group, send email to apmo...@googlegroups.com.
Visit this group at https://groups.google.com/group/apmonitor.
For more options, visit https://groups.google.com/d/optout.


--
Best regards,

John Hedengren
APMonitor Optimization Suite

Tom Xu

unread,
Apr 3, 2020, 9:19:21 PM4/3/20
to apmonitor
John,
I can't seem to find Anaconda3/Scripts folder?
Can you help?
Thanks
Tom


On Wednesday, November 14, 2018 at 8:08:46 AM UTC-5, John Hedengren wrote:
You can install gekko on any Python distribution (including IPython, Jupyter notebook, Spyder, PyCharm, etc) with pip. You'll need to locate your Anaconda installation and then change directory to the Scripts folder. Once you are in the Scripts folder, you can perform the pip installation.

C:\Anaconda3\Scripts>pip install gekko
Collecting gekko
  Using cached https://files.pythonhosted.org/packages/89/96/64a24ea36a96fea247b97dbc1831155a4b899d37967473dc566d76170e9a/gekko-0.1b2-py3-none-any.whl
Requirement already satisfied: flask-cors in c:\anaconda3\lib\site-packages (from gekko) (3.0.4)
Requirement already satisfied: numpy>=1.8 in c:\anaconda3\lib\site-packages (from gekko) (1.14.3)
Requirement already satisfied: flask in c:\anaconda3\lib\site-packages (from gekko) (1.0.2)
Requirement already satisfied: Six in c:\anaconda3\lib\site-packages (from flask-cors->gekko) (1.11.0)
Requirement already satisfied: Werkzeug>=0.14 in c:\anaconda3\lib\site-packages (from flask->gekko) (0.14.1)
Requirement already satisfied: itsdangerous>=0.24 in c:\anaconda3\lib\site-packages (from flask->gekko) (0.24)
Requirement already satisfied: click>=5.1 in c:\anaconda3\lib\site-packages (from flask->gekko) (6.7)
Requirement already satisfied: Jinja2>=2.10 in c:\anaconda3\lib\site-packages (from flask->gekko) (2.10)
Requirement already satisfied: MarkupSafe>=0.23 in c:\anaconda3\lib\site-packages (from Jinja2>=2.10->flask->gekko) (1.0)
distributed 1.21.8 requires msgpack, which is not installed.
Installing collected packages: gekko
Successfully installed gekko-0.1b2


Another way to pip install gekko is the following that you can paste into any Python script or a cell in a Jupyter notebook:

module='gekko' try: from pip import main as pipmain except: from pip._internal import main as pipmain pipmain(['install',module])

The recommended way is to pip install from the command line but I just wanted to let you know that this is also available. We currently don't have a conda package for gekko, unfortunately.

-John Hedengren

On Wed, Nov 14, 2018 at 5:24 AM Niladri Chakraborty <ch.n...@gmail.com> wrote:
Hi,
I need to install gekko using conda install statement. Can you suggest me conda install statement for gekko. conda install gekko is not working

Thanks,
Niladri

--
--
APMonitor user's group e-mail list.
- To post a message, send email to apmo...@googlegroups.com
- To unsubscribe, send email to apmo...@googlegroups.com

- Visit this group at http://groups.google.com/group/apmonitor
---
You received this message because you are subscribed to the Google Groups "apmonitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apmo...@googlegroups.com.

To post to this group, send email to apmo...@googlegroups.com.
Visit this group at https://groups.google.com/group/apmonitor.
For more options, visit https://groups.google.com/d/optout.

John Hedengren

unread,
Apr 3, 2020, 9:24:11 PM4/3/20
to APM Google Groups
Tom,

To install gekko, you can open the Anaconda prompt and then it will use the correct path if you type "pip install gekko". Otherwise you can find the folder with "where python" to show all of your Python installations. There are additional Python installation instructions here: 



- To unsubscribe, send email to apmonitor+...@googlegroups.com

- Visit this group at http://groups.google.com/group/apmonitor
---
You received this message because you are subscribed to the Google Groups "apmonitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apmonitor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/apmonitor/e13a81e4-d54c-4b7a-a45b-326cb8f05c01%40googlegroups.com.

Tom Xu

unread,
Apr 4, 2020, 11:13:12 AM4/4/20
to apmo...@googlegroups.com
Understand now! Thanks John.

Sent from my iPhone

On Apr 3, 2020, at 9:24 PM, John Hedengren <jo...@apmonitor.com> wrote:


Reply all
Reply to author
Forward
0 new messages