How to Clone a GitHub Repository to Work with Anaconda Distribution

A step-by-step guide to cloning a GitHub package to your Windows computer

Rukshan Pramoditha


Anaconda is a popular Python and package distribution system for data science and scientific computing.

Most commonly used packages come directly with Anaconda installation, so you don’t need to install them separately.

We can manually install packages that don’t directly come with Anaconda distribution by using pipor condapackage installers. To do so, the author(s) should have put the package on PyPI or Anaconda.

What will happen if the author(s) of the package didn’t put the package on PyPI or Anaconda? If you try to install such a package by running a pipor condacommand on the Anaconda Prompt, you will get an error!

The above example shows the package, scikit-hyperband, cannot be installed by running a pipcommand as the author hasn't put the package on PyPI.

Now, imagine that you still want to import this package to your Anaconda working environment.

Luckily, there is a solution to this!

You can directly clone the package from the GitHub repository to your Windows computer to work with an Anaconda environment.

In computer science, cloning refers to the making of an exact copy of an object — Wikipedia

This article describes the steps to clone a GitHub repository to your Windows computer to work with an Anaconda environment. I assume that you have already installed Anaconda on your Windows computer. If you haven’t, please read the Installing Python on Windows section.

Step 1: Install Git on Windows

If you haven’t installed Git on your system, you need to download and install it from the official Git website.

(Image from official Git website, screenshot by author)
  • Run the setup (.exe) file with…



Rukshan Pramoditha

2,000,000+ Views | BSc in Stats | Top 50 Data Science, AI/ML Technical Writer on Medium | Data Science Masterclass: