1

我有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.
4

1 回答 1

1

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

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

于 2014-07-27T16:25:17.730 回答