为什么我不能运行bzr explorer

时间:2014-07-27 13:56:26

标签: python macos bazaar bzr-svn

我在

中看到了python
which python

以及

➜  ~  brew install qt
Warning: qt-4.8.6 already installed
➜  ~  brew install pyqt
Warning: pyqt-4.10.4 already installed

然后我尝试在我的OSX上运行:

➜  ~  bzr explorer       

并收到此错误:

invalid syntax (<string>, line 1)
    Unable to load u'bzr-explorer' in u'/Users/me/.bazaar/plugins' as a plugin because the file path isn't a valid module name; try renaming it to u'explorer'.
    bzr: ERROR: No module named PyQt4
    You may need to install this Python library separately.

1 个答案:

答案 0 :(得分:1)

您的Bazaar Explorer插件似乎已安装在/Users/me/.bazaar/plugins/bzr-explorer中。将该目录重命名为/Users/me/.bazaar/plugins/explorer,然后它应该可以正常工作。 (正如错误消息试图告诉你的那样。)

顺便说一下,我建议使用官方网站(http://wiki.bazaar.canonical.com/MacOSXDownloads)上的dmg文件。 Bazaar Explorer包含在其中,应该可以开箱即用。