Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos Can';不能在Mac OS 10.9.x上运行'bzr explorer'_Macos_Pyqt4_Bazaar - Fatal编程技术网

Macos Can';不能在Mac OS 10.9.x上运行'bzr explorer'

Macos Can';不能在Mac OS 10.9.x上运行'bzr explorer',macos,pyqt4,bazaar,Macos,Pyqt4,Bazaar,不幸的是,的答案没有回答我的问题( 我已安装以下设备: $ python Python 2.7.5 (default, Mar 9 2014, 22:15:05) $ brew install qt Warning: qt-4.8.6 already installed $ brew install pyqt Warning: pyqt-4.11.1 already installed $ brew install sip Warning: sip-4.16.3 already inst

不幸的是,的答案没有回答我的问题(

我已安装以下设备:

$ python
Python 2.7.5 (default, Mar  9 2014, 22:15:05)

$ brew install qt
Warning: qt-4.8.6 already installed

$ brew install pyqt
Warning: pyqt-4.11.1 already installed

$ brew install sip
Warning: sip-4.16.3 already installed
然后,当我尝试运行
bzrexplorer
时,它返回以下内容:

$ bzr explorer
bzr: ERROR: No module named PyQt4
You may need to install this Python library separately.
$ ll
total 0
drwxr-xr-x  25 me  staff  850 Oct  9 15:21 explorer
drwxr-xr-x  20 me  staff  680 Oct  9 15:22 qbzr
我在Mac OS 10.9.x上运行。 我的
/Users/me/.bazaar/plugins
目录具有以下内容:

$ bzr explorer
bzr: ERROR: No module named PyQt4
You may need to install this Python library separately.
$ ll
total 0
drwxr-xr-x  25 me  staff  850 Oct  9 15:21 explorer
drwxr-xr-x  20 me  staff  680 Oct  9 15:22 qbzr

我缺少什么?

如果运行
python
,然后
import PyQt4
它说什么?@JohnZwinck,我会得到以下>>>import PyQt4回溯(最近一次调用last):文件“”,第1行,在ImportError中:没有名为PyQt4的模块当问题似乎是PyQt4未安装或未正确安装时。也许您可以使用“brew”工具列出您安装的pyqt包所拥有的文件…或者它们根本不在$PYTHONPATH中,或者它是错误的包,或者其他东西。@JohnZwinck,我设法解决了这个错误:
bzr:error:No module named PyQt4
,但是现在当我尝试运行命令
bzr explorer
时,我得到了一个新的错误
bzr:错误:没有名为sip的模块。
。我为解决PyQt4错误而执行的过程无法解决此错误。(
/Library/Python/2.7/site packages
)中的PyQt4缺少其符号链接。我尝试对sip执行相同的操作,但没有成功。