我有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.
最佳答案
看来您的Bazaar Explorer插件已安装在/Users/me/.bazaar/plugins/bzr-explorer
中。将该目录重命名为/Users/me/.bazaar/plugins/explorer
,然后它应该可以工作。 (由于错误消息试图告诉您。)
顺便说一句,我建议使用官方网站(http://wiki.bazaar.canonical.com/MacOSXDownloads)中的dmg
文件。 Bazaar Explorer包含在其中,应该可以直接使用。
关于python - 为什么我不能运行bzr Explorer,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/24981688/