gpt4 book ai didi

python - pip install fuse-python : pkg-config unavailable, 构建终止

转载 作者:行者123 更新时间:2023-11-28 18:45:58 53 4
gpt4 key购买 nike

我正在尝试在 osx 10.8.5 上使用 pip 安装 osx fuse 的 python 绑定(bind)。我正在运行 python 2.7.2。我正在运行 fuse 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

最佳答案

我需要 pck-config。安装 pck-config 解决了这个问题。这些命令导致安装成功。

brew install pkg-config
sudo pip install fuse-python

关于python - pip install fuse-python : pkg-config unavailable, 构建终止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20173839/

53 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com