如何在 Mac OSX 上安装 paramiko?
我在这方面有很多问题。 当我尝试使用 easy_install 时,出现此错误:
warning: GMP library not found; Not building Crypto.PublicKey._fastmath.
unable to execute gcc-4.0: No such file or directory
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
How do you install paramiko?当我尝试安装 PyCrypto 时,出现同样的错误。
I'm having a lot of problems with this one.
When I try using easy_install, I get this error:
warning: GMP library not found; Not building Crypto.PublicKey._fastmath.
unable to execute gcc-4.0: No such file or directory
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
How do you install paramiko? I get the same error when I try to install PyCrypto.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要安装 Xcode(在 OSX 安装 DVD 上或在 AppStore 中在线安装)。
它包括您显然缺少的 gcc 编译器。它还包括您可能需要构建它的其他内容,例如 make。也许 homebrew 或 fink 也包含 gcc 之类的东西。
You need to install Xcode (on the OSX install DVD or online in the AppStore).
It includes the gcc compileer you are apprantly missing. It also includes other stuff like make that you probably need to build it. Maybe homebrew or fink also have gcc and the like included.
如果有帮助的话,我用符号链接解决了这个问题,我认为它对你有用。我写这篇文章时考虑的是我的 gcc 版本,即 4.2:
好了!
If it helps any, I solved this issue with sym links, and I think it will work for you. I wrote this with my version of gcc in mind, which is 4.2:
There ya go!