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
非常感謝jdi!我以爲我已經安裝了Xcode,但那是我的舊電腦,現在一切正常。 – Kray