Skip to main content
 首页 » 编程设计

python之NearDuplicatesDetection 0.2.0 安装时出错

2024年11月01日26txw1958

我只是想使用安装 NearDuplicatesDetection 0.2.0

pip 安装 git://github.com/parkr/near-dup-detection.git#egg=NearDuplicatesDetection

但是我得到了这个错误:

184, in get_url_rev 
url, rev = super(Git, self).get_url_rev() 
File ".../anaconda/lib/python2.7/site-packages/pip/vcs/__init__.py", line 124,           
in get_url_rev 
assert '+' in self.url, error_message % self.url 
AssertionError: Sorry, 'git://github.com/parkr/near-dup-detection.git' is a malformed VCS 
url. The format is <vcs>+<protocol>://<url>, e.g. svn+http://myrepo/svn/MyApp#egg=MyApp 

我该如何解决这个问题?提前致谢!

请您参考如下方法:

将 git 与 pip 结合使用的正确语法是:

pip install git+https://github.com/parkr/near-dup-detection.git#egg=NearDuplicatesDetection