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

标签 python macos pip fuse

我正在尝试在 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/

相关文章:

python - pd.to_datetime值错误: Given date string not likely a datetime

linux - vagrant 在 mac 的 debian VM 上设备上没有剩余空间

python - 通过 pip 安装本地轮时 ValueError "Expected version spec"

macos - 无法拉取 docker 镜像 : no route to host

macos - mac os 10.6 雪豹下的 cron 作业

python - Tensorflow 在 mac 上成功安装,但在使用时在 copyreg 上出现 ImportError

git - pip 从 git repo 分支安装/使用子模块提交

Python Twisted : SSL routines , ssl3_get_server_certificate 错误

python - 如何使用python向mysql数据库插入变量? "You have an error in your SQL syntax"

python - 难以解决 O(logn) 中的代码