2012-05-07 132 views
0

我试图通过在操作系统的终端安装的paramiko这样我就可以按照这个教程来安装的paramiko: http://www.macdrifter.com/2012/05/automated-ftp-from-dropbox-with-hazel/错误尝试通过PIP

我用OKG从Python网站安装最新版本(3.2。 3)但我在代码中看到2.7。对于终端来说,我仍然是n3wb,所以不知道这些错误中有些是什么意思,或者对它们做些什么(或者如何准确地解密日志)。十分赞赏的任何帮助(I剥出一堆“复制”线,由.............这一切从初始命令到结束所指。

sudo pip install paramiko 

Downloading/unpacking paramiko 
    Downloading paramiko-1.7.7.1.zip (1.1Mb): 1.1Mb downloaded 
    Running setup.py egg_info for package paramiko 

Downloading/unpacking pycrypto>=2.1 (from paramiko) 
    Downloading pycrypto-2.5.tar.gz (426Kb): 426Kb downloaded 
    Running setup.py egg_info for package pycrypto 

Installing collected packages: paramiko, pycrypto 
    Running setup.py install for paramiko 

    Running setup.py install for pycrypto 
    checking for gcc... no 
    checking for cc... no 
    checking for cl.exe... no 
    configure: error: in `/Users/username/build/pycrypto': 
    configure: error: no acceptable C compiler found in $PATH 
    See `config.log' for more details 

    Traceback (most recent call last): 
     File "<string>", line 1, in <module> 
     File "/Users/username/build/pycrypto/setup.py", line 452, in <module> 
     core.setup(**kw) 
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup 
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands 
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command 
     File "/Library/Python/2.7/site-packages/distribute-0.6.26-py2.7.egg/setuptools/command/install.py", line 53, in run 
     return _install.run(self) 
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 573, in run 
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command 
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command 
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build.py", line 127, in run 
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command 
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command 
     File "/Users/username/build/pycrypto/setup.py", line 247, in run 
     self.run_command(cmd_name) 
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command 
     File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command 
     File "/Users/username/build/pycrypto/setup.py", line 274, in run 
     raise RuntimeError("autoconf error") 
    RuntimeError: autoconf error 
    Complete output from command /usr/bin/python -c "import setuptools;__file__='/Users/username/build/pycrypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-u08kV1-record/install-record.txt: 
    running install 

running build 
running build_py 
creating build 
creating build/lib.macosx-10.7-intel-2.7 
creating build/lib.macosx-10.7-intel-2.7/Crypto 
copying lib/Crypto/__init__.py -> build/lib.macosx-10.7-intel-2.7/Crypto 
......... 
copying lib/Crypto/Signature/PKCS1_v1_5.py -> build/lib.macosx-10.7-intel-2.7/Crypto/Signature 

running build_ext 
running build_configure 
checking for gcc... no 
checking for cc... no 
checking for cl.exe... no 
configure: error: in `/Users/username/build/pycrypto': 
configure: error: no acceptable C compiler found in $PATH 
See `config.log' for more details 

Traceback (most recent call last): 
    File "<string>", line 1, in <module> 
    File "/Users/username/build/pycrypto/setup.py", line 452, in <module> 
    core.setup(**kw) 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command 
    File "/Library/Python/2.7/site-packages/distribute-0.6.26-py2.7.egg/setuptools/command/install.py", line 53, in run 
    return _install.run(self) 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 573, in run 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build.py", line 127, in run 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command 
    File "/Users/username/build/pycrypto/setup.py", line 247, in run 
    self.run_command(cmd_name) 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command 
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command 
    File "/Users/username/build/pycrypto/setup.py", line 274, in run 
    raise RuntimeError("autoconf error") 
RuntimeError: autoconf error 

---------------------------------------- 
Command /usr/bin/python -c "import setuptools;__file__='/Users/username/build/pycrypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-u08kV1-record/install-record.txt failed with error code 1 in /Users/username/build/pycrypto 
Storing complete log in /Users/username/Library/Logs/pip.log 

回答

2

从苹果App Store安装Xcode,并确保你进入了首选项 - >下载并安装命令行工具。你需要一个编译器。

+0

非常感谢jdi!我以为我已经安装了Xcode,但那是我的旧电脑,现在一切正常。 – Kray

相关问题