Installing module from GitHub through Jupyter notebook

Make sure you run your Jupyter Notebook from a session where PATH does include the path to your Git installation.

And check out pip issue 2109:

In my case the problem was the way I had the path to git defined in my path environment on windows.

the function find_command declared in pip.util fails in handle paths with quote, like:

PATH=...;c:\python27\scripts;"c:\Program Files\git\cmd";C:\Tcl\bin;...

when it appends the git.exe filename to check its existence it keeps the ” symbol and the check fails.

That should be fixed in recent version of pip, but again, double-check your %PATH%.


If that still fails, try with a simplified path, and Git installed in a short PATH without space:

  • use the latest Git for Windows (uncompress Git 2.13 PortableGit-2.13.2-64-bit.7z.exe anywhere you want, for instance in C:\Git2.13.2)
  • set a simplified PATH.

Regarding the PATH issue, type (in a CMD):

set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\Git2.13.2
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%

Add to that PATH what you need for python/pip.
Then try again.


For your second error message, consider “pip installation error “No such file or directory: setup.py””, and double-check your version of Python: pip is for python 2. pip3 is for python 3.

Leave a Comment

tech