我已经分叉this repo。我尝试使用pip
从我的仓库安装此功能,因为我做了一些更改,但它经常失败。我尝试了几件事,但没有运气:
pip install -e git+https://github.com/rshiva/python-boilerpipe.git#egg=python-boilerpipe
-e git://github.com:rshiva/python-boilerpipe.git#egg=python-boilerpipe
我得到的错误是
no matches found
为什么我们要提蛋?这样做的正确方法是什么?
答案 0 :(得分:2)
您的第一个pip
命令行是正确的,但安装失败。
那是因为回购包含broken copy of the boilerplate-1.2.0-bin.tar.gz
file。 setup.py
脚本找到此文件,不会下载新的副本,但因为文件不完整而导致该文件失败:
Updating ./src/python-boilerpipe clone
Running setup.py (path:/Users/mj/Development/venvs/stackoverflow-3.4/src/python-boilerpipe/setup.py) egg_info for package python-boilerpipe
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/Users/mj/Development/venvs/stackoverflow-3.4/src/python-boilerpipe/setup.py", line 27, in <module>
download_jars(datapath=DATAPATH)
File "/Users/mj/Development/venvs/stackoverflow-3.4/src/python-boilerpipe/setup.py", line 22, in download_jars
for tarinfo in tar.getmembers():
File "/Users/mj/Development/Library/buildout.python/parts/opt/lib/python3.4/tarfile.py", line 1738, in getmembers
self._load() # all members, we first have to
File "/Users/mj/Development/Library/buildout.python/parts/opt/lib/python3.4/tarfile.py", line 2311, in _load
tarinfo = self.next()
File "/Users/mj/Development/Library/buildout.python/parts/opt/lib/python3.4/tarfile.py", line 2246, in next
self.fileobj.seek(self.offset)
File "/Users/mj/Development/Library/buildout.python/parts/opt/lib/python3.4/gzip.py", line 573, in seek
self.read(1024)
File "/Users/mj/Development/Library/buildout.python/parts/opt/lib/python3.4/gzip.py", line 365, in read
if not self._read(readsize):
File "/Users/mj/Development/Library/buildout.python/parts/opt/lib/python3.4/gzip.py", line 449, in _read
self._read_eof()
File "/Users/mj/Development/Library/buildout.python/parts/opt/lib/python3.4/gzip.py", line 482, in _read_eof
crc32, isize = struct.unpack("<II", self._read_exact(8))
File "/Users/mj/Development/Library/buildout.python/parts/opt/lib/python3.4/gzip.py", line 286, in _read_exact
raise EOFError("Compressed file ended before the "
EOFError: Compressed file ended before the end-of-stream marker was reached
从您的存储库中删除此文件,您的安装工作正常。