我正在尝试使用osx 10.8.5上的pip为osx fuse安装python绑定。我正在运行python 2.7.2。我正在运行保险丝2.6.1。当我运行pip install命令时,我收到此错误。我不知道如何调试它。
akh$ pip install fuse-python
Downloading/unpacking fuse-python
Downloading fuse-python-0.2.tar.gz (53kB): 53kB downloaded
Running setup.py egg_info for package fuse-python
pkg-config unavailable, build terminated
Complete output from command python setup.py egg_info:
pkg-config unavailable, build terminated
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/hx/xb3zxftx6vlbd8nh1dbs6rc80000gn/T/pip_build_akh/fuse-python
Storing complete log in /Users/akh/Library/Logs/pip.log
这是日志的尾部:
My Machine:Json akh$ tail 10 /Users/akh/Library/Logs/pip.log
tail: 10: No such file or directory
==> /Users/akh/Library/Logs/pip.log <==
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-1.4.1-py2.7.egg/pip/commands/install.py", line 236, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Library/Python/2.7/site-packages/pip-1.4.1-py2.7.egg/pip/req.py", line 1134, in prepare_files
req_to_install.run_egg_info()
File "/Library/Python/2.7/site-packages/pip-1.4.1-py2.7.egg/pip/req.py", line 259, in run_egg_info
command_desc='python setup.py egg_info')
File "/Library/Python/2.7/site-packages/pip-1.4.1-py2.7.egg/pip/util.py", line 670, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /private/var/folders/hx/xb3zxftx6vlbd8nh1dbs6rc80000gn/T/pip_build_abramhandler/fuse-python
答案 0 :(得分:1)
我需要pck-config。安装pck-config修复了问题。这些命令导致安装成功。
brew install pkg-config
sudo pip install fuse-python