我正在尝试通过操作系统中的终端安装 paramiko,以便可以按照本教程进行操作:http: //www.macdrifter.com/2012/05/automated-ftp-from-dropbox-with-hazel/
我使用 python 站点的 OKG 安装最新版本(3.2.3),但我在代码中看到 2.7。当谈到终端时,我仍然非常n3wb,所以不确定其中一些错误是什么意思或如何处理它们(或者如何准确地破译日志)。非常感谢任何帮助(我去掉了一堆“复制”行,用 ...... 表示这是从初始命令到结束的所有内容。
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