Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • DSA
  • Practice Problems
  • Python
  • C
  • C++
  • Java
  • Courses
  • Machine Learning
  • DevOps
  • Web Development
  • System Design
  • Aptitude
  • Projects
Open In App
Next Article:
How to Install Eli5 in Python on MacOS?
Next article icon

How to Install Gekko in Python on MacOS?

Last Updated : 30 Sep, 2021
Comments
Improve
Suggest changes
Like Article
Like
Report

In this article, we will learn how to install Gekko in Python on MacOS. GEKKO is a python package for machine learning and optimization, specializing in dynamic optimization of differential-algebraic equations (DAE) systems.

Installation:

Method 1: Using pip to install Gekko Package

Follow the below steps to install the Gekko package on macOS using pip:

Step 1: Install the latest Python3 in MacOS

Step 2: Check if pip3 and python3 are correctly installed.

python3 --version  pip3 --version
checking python and pip version in macos

Step 3: Upgrade your pip to avoid errors during installation.

pip3 install --upgrade pip
upgrading pip in macos

Step 4: Enter the following command to install Gekko using pip3.

pip3 install gekko
installing Gekko package on macOS using pip

Method 2: Using setup.py to install Gekko 

Follow the below steps to install the Gekko package on macOS using the setup.py file:

Step 1: Download the latest source package of Gekko for python3 from here.

curl https://files.pythonhosted.org/packages/5e/cd/9d276cf6e905b9d03ca1fb51a27db7f79779703ccf582b88dd54b4a9d4b5/gekko-1.0.1.tar.gz > gekko.tar.gz
downloading the source package for Gekko in macos

Step 2: Extract the downloaded package using the following command.

tar -xzvf gekko.tar.gz
extracting the gekko.tar.gz file in macos

Step 3: Go inside the folder and Enter the following command to install the package.

Note: You must have developer tools for XCode MacOS installed in your system

cd gekko-1.0.1  python3 setup.py install
installing Gekko on macOS using the setup.py file

Verifying Gekko installation on macOS:

Make the following import in your python terminal to verify if the installation has been done properly:

import gekko 
Verifying Gekko installation on macOS

If there is any error while importing the module then is not installed properly.


Next Article
How to Install Eli5 in Python on MacOS?
author
anilabhadatta
Improve
Article Tags :
  • How To
  • Installation Guide
  • how-to-install

Similar Reads

  • How to Install glob in Python on MacOS?
    In this article, we will learn how to install glob in Python on MacOS. Glob is a general term used to define techniques to match specified patterns according to rules related to Unix shell. Linux and Unix systems and shells also support glob and also provide function glob() in system libraries. Inst
    2 min read
  • How to Install Eli5 in Python on MacOS?
    Eli5 is an open-source library that is written purely in Python for easy and quick debugging of machine learning classifiers and interpreting their predictions. It provides support for machine learning frameworks and packages such as sci-kit-learn, Keras, xgboost, etc. The Eli5 library is a cross-pl
    2 min read
  • How to Install Bokeh in Python3 on MacOS?
    Data visualization is the graphical representation of information and data with the help of charts and graphs. There are different types of well-known data visualization libraries like Matplotlib, Seaborn or Plotly for presenting information and data in the form of charts and graphs. Bokeh is also a
    2 min read
  • How to Install Dash in Python on MacOS?
    The Dash library in Python is a framework designed for rapidly building custom data applications. The Dash library is a cross-platform library for various operating systems such as Windows, Linux, and macOS. So, in this article, we will install the Dash library using Python on macOS. Pre Requisites
    2 min read
  • How to Install Chainer in Python on MacOS?
    Dееp lеarning is a type of machinе lеarning that imitatеs how our brains work using artificial nеural nеtworks. It deals with solving difficult problems by teaching thеsе artificial nеural nеtworks with lots of data. This helps them make prеdictions, recognize patterns, and do tasks without being to
    2 min read
  • How to Install Gekko In Python on Linux?
    In this article, we will learn how to install Gekko in Python on Linux. GEKKO is a Python package for machine learning and optimization of mixed-integer and differential-algebraic equations. It is coupled with large-scale solvers for linear, quadratic, nonlinear, and mixed-integer programming (LP, Q
    2 min read
  • How to Install Nose in Python on MacOS?
    In this article, we will learn how to install Nose in Python on MacOS. Nose extends the test loading and running features of unittest, making it easier to write, find and run tests. Installation:Method 1: Using pip to install Nose Package Follow the below steps to install the Nose package on macOS u
    2 min read
  • How to Install xlrd in Python on MacOS?
    In this article, we will learn how to install xlrd library in Python on macOS. The xlrd is a library for reading data and formatting information from Excel files in the historical .xls format. Installing xlrd Library on macOS:Method 1: Using pip to install xlrd Follow the below steps to install the
    2 min read
  • How to Install Fabric in Python on MacOS?
    Fabric is a Python library for running shell commands remotely via SSH (Secure Shell), and in return, provides useful Python objects. It builds on Invoke (subprocess command execution and command line functionality) and Paramiko (SSH protocol implementation). In this article, we will explore simple
    2 min read
  • How to Install PyGTK in Python on MacOS?
    PyGTK is a Python package or module that enables developers to work with GTK+ GUI Toolkit. This is how WikiBooks describes GTK+: "GTK+ is a highly usable, feature rich toolkit for creating graphical user interfaces which boasts cross platform compatibility and an easy to use API." And this is how gt
    4 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences