我已经尝试了两天来解决这个问题。我有最新版本的 OSX 和 Homebrew。我遵循了一个让我通过 Homebrew 安装 pip 的教程,然后建议从 Homebrew 安装 Fabric:
brew install Fabric
但是 Fabric 的配方已经从 Homebrew 中消失了。是的,我也进行了更新。所以我遵循了另一个建议我通过 pip 安装的教程。点安装织物
它在涉及 pycrypto 的各种方式中都失败了。这是点子日志。Mac不应该让生活更轻松吗?
status = self.run(options, args)
File "/usr/local/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/commands/install.py", line 241, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/local/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/req.py", line 1277, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/req.py", line 622, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/usr/local/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/util.py", line 670, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/local/opt/python/bin/python2.7 -c "import setuptools;__file__='/private/tmp/pip-build-root/pycrypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-DDW_Gb-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/tmp/pip-build-root/pycrypto