Skip to content Skip to sidebar Skip to footer

Unable To Install Python Library From Github

My OS is OSX 10.10.5 and I use Anaconda distribution for python. I am trying to install the following library from github: https://github.com/gmum/pykernels When I try to use pip

Solution 1:

The problem is, that library doesn't have a setup.py file. pip executes/follows this file. so that library cannot be installed using pip. You can, however, download and put that library (the pykernels folder inside the repo) in your current folder or add it's path to sys.path like this:

import sys
sys.path.append("Path to pykernels repo") 

Be sure to install their dependencies using pip like this:

pip install numpy scipy scikit-learn

Then you can just use import pykernels in your script.

Edit: setup.py is now integrated to the repository and now you can just use pip:

pip install git+https://github.com/gmum/pykernels.git

Solution 2:

Solution 3:

The repository is missing a setup.py file. Without this pip does not know how to install the module/package.

It looks like it's just a plain package without any setup scripts. You'll need to clone it and use it by copy/pasting it into your project or write your own setup.py file.

Here's the documentation. It's pretty straight forward.

Post a Comment for "Unable To Install Python Library From Github"