3
我成功编译水银如下: ...如何解决“AttributeError:'模块'对象没有属性'set_binary'”?
copying build/scripts-2.7/hg -> /usr/local/bin
changing mode of /usr/local/bin/hg to 755
running install_egg_info
Writing /usr/local/lib/python2.7/site-packages/mercurial-2.8.1-py2.7.egg-info
as3:~/mercurial-2.8.1# cd ~
as3:~# hg clone http://hg.cat-v.org/werc/
Traceback (most recent call last):
File "/usr/bin/hg", line 25, in <module>
mercurial.util.set_binary(fp)
File "/usr/local/lib/python2.7/site-packages/mercurial/demandimport.py", line 103, in __getattribute__
return getattr(self._module, attr)
AttributeError: 'module' object has no attribute 'set_binary'
as3:~#
如何解决它TKS? 我的蟒蛇版本:2.7.6
嗨,现在没关系。 – fisherman
太棒了。虽然不是评论,但我们通常通过接受答案来证实某些工作是有效的。但最重要的是,现在你很好。 –
谢谢,我确实以bin的方式链接到usr/local,它的工作 –