64位下安裝python的paramik

首先,不知道是平台原因還是版本原因,在32位linux下安裝無任何問題,環境為cent5.5,ptyhon 2.4.3 .到64位下環境為cent6.0,python 2.6.3。

 paramiko為linux下連接ssh的python模組,可以用來連接ssh,ftp等。

因為這個模組要安裝pycrypto,自己在64位下安裝時報錯:

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c Cython/Plex/Scanners.c -o build/temp.linux-x86_64-2.6/Cython/Plex/Scanners.o Cython/Plex/Scanners.c:4:20: error: Python.h: No such file or directory Cython/Plex/Scanners.c:6:6: error: #error Python headers needed to compile C extensions, please install development version of Python. error: command 'gcc' failed with exit status 1 

然後又安裝cython,依然又是這個錯誤,看老是提示少python.h。

沒辦法,只好找狗哥,狗說安裝python-dev就OK了。(按道理應該是更新lib庫)

最後直接用 yum install python-devel搞定。

網上如果有的網友說這個也找不到時可以自己手動更新,方法自己也沒試,估計到python官網上會有,得你自己去找了,呵呵

僅此寫作,留以後觀看。