Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/299.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 安装在Google Colab中使用的公共github repo的正确方法?_Python_Github_Pip_Google Colaboratory - Fatal编程技术网

Python 安装在Google Colab中使用的公共github repo的正确方法?

Python 安装在Google Colab中使用的公共github repo的正确方法?,python,github,pip,google-colaboratory,Python,Github,Pip,Google Colaboratory,我有一个公共的Github存储库——我想在我的Google Colab Python笔记本中安装它,并使用它的.py文件中的一些函数 以下是我尝试安装它的方式: !pip安装git+http://github.com/benmercerdev/inkblottin#egg=inkblottin 这就是我得到的错误: 收集墨迹 克隆http://github.com/benmercerdev/inkblottin 至/tmp/pip-install-4l26ktdy/inkblottin 运行gi

我有一个公共的Github存储库——我想在我的Google Colab Python笔记本中安装它,并使用它的.py文件中的一些函数

以下是我尝试安装它的方式:

!pip安装git+http://github.com/benmercerdev/inkblottin#egg=inkblottin

这就是我得到的错误:

收集墨迹
克隆http://github.com/benmercerdev/inkblottin 至/tmp/pip-install-4l26ktdy/inkblottin
运行git clone-q命令http://github.com/benmercerdev/inkblottin /tmp/pip-install-4l26ktdy/墨渍
错误:命令出错,退出状态为1:python setup.py egg\u info检查日志以获得完整的命令输出。


我错过了什么?这是我的repo或Colab代码的问题吗?

我试图用命令安装该软件包

pip install 'git+http://github.com/benmercerdev/inkblottin#egg=inkblottin'
本地访问并获取错误:

ERROR: Command errored out with exit status 1:
 command: /home/phd/.virtualenvs/tmp-54bd678379cf43d6/bin/python2.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4lmCa8/inkblottin/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4lmCa8/inkblottin/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-4lmCa8/inkblottin/pip-egg-info
     cwd: /tmp/pip-install-4lmCa8/inkblottin/
Complete output (7 lines):
running egg_info
creating /tmp/pip-install-4lmCa8/inkblottin/pip-egg-info/inkblottin.egg-info
writing /tmp/pip-install-4lmCa8/inkblottin/pip-egg-info/inkblottin.egg-info/PKG-INFO
writing top-level names to /tmp/pip-install-4lmCa8/inkblottin/pip-egg-info/inkblottin.egg-info/top_level.txt
writing dependency_links to /tmp/pip-install-4lmCa8/inkblottin/pip-egg-info/inkblottin.egg-info/dependency_links.txt
writing manifest file '/tmp/pip-install-4lmCa8/inkblottin/pip-egg-info/inkblottin.egg-info/SOURCES.txt'
error: package directory 'inkblottin' does not exist
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

这是软件包中的一个bug:它的
setup.py
但是没有这样的软件包,它只有
inkblot
。请修复您的
setup.py
或重命名顶级软件包。

能否将日志添加到您的问题中?