Reputation: 332
WHAT am I doing wrong?
This doesn't help: Installing module from GitHub through Jupyter notebook
I just want to import this python module. Just the one. It's at
!pip install git+http://github.com/peterroelants/peterroelants.github.io/tree/master/notebooks/gaussian_process/rational_quadratic.git
Collecting git+http://github.com/peterroelants/peterroelants.github.io/tree/master/notebooks/gaussian_process/rational_quadratic.git
Cloning http://github.com/peterroelants/peterroelants.github.io/tree/master/notebooks/gaussian_process/rational_quadratic.git to /private/var/folders/xq/0txkbk490zl1y5wp5vd3bhhnpw3bp9/T/pip-req-build-pzltmobn
Running command git clone -q http://github.com/peterroelants/peterroelants.github.io/tree/master/notebooks/gaussian_process/rational_quadratic.git /private/var/folders/xq/0txkbk490zl1y5wp5vd3bhhnpw3bp9/T/pip-req-build-pzltmobn
fatal: repository 'http://github.com/peterroelants/peterroelants.github.io/tree/master/notebooks/gaussian_process/rational_quadratic.git/' not found
ERROR: Command errored out with exit status 128: git clone -q http://github.com/peterroelants/peterroelants.github.io/tree/master/notebooks/gaussian_process/rational_quadratic.git /private/var/folders/xq/0txkbk490zl1y5wp5vd3bhhnpw3bp9/T/pip-req-build-pzltmobn Check the logs for full command output.
Upvotes: 1
Views: 4607
Reputation: 58
You would usually clone the root repository including all the files, but also the repository does not seem to be a Python Package. The reason you are getting the error is because pip
works through PyPi
which hosts all the python packages, and the mentioned repository is not hosted on there. However, in your case you could just clone the repository or copy,download the rational_quadratic.py
to your project directory and import the module.
This post may be able to help.
Upvotes: 1