2013-05-17 38 views
0

當在Windows 7上嘗試安裝使用Python 3.3的Python SSH 1.8.0庫時,出現了編譯錯誤。我很驚訝地得到語法錯誤的通知。Python ssh 1.8.0庫安裝錯誤

C:\Users\egargio\Downloads\ssh-1.8.0\ssh-1.8.0>C:\Python33\python setup.py insta 
ll 
running install 
running build 
running build_py 
running install_lib 
byte-compiling C:\Python33\Lib\site-packages\ssh\auth_handler.py to auth_handler 
.cpython-33.pyc 
    File "C:\Python33\Lib\site-packages\ssh\auth_handler.py", line 311 
    except SSHException, e: 
        ^
SyntaxError: invalid syntax 

byte-compiling C:\Python33\Lib\site-packages\ssh\channel.py to channel.cpython-3 
3.pyc 
    File "C:\Python33\Lib\site-packages\ssh\channel.py", line 610 
    except PipeTimeout, e: 
        ^
SyntaxError: invalid syntax 


byte-compiling C:\Python33\Lib\site-packages\ssh\message.py to message.cpython-3 
3.pyc 
    File "C:\Python33\Lib\site-packages\ssh\message.py", line 279 
    if i > 0xffffffffL: 
        ^
SyntaxError: invalid syntax 

byte-compiling C:\Python33\Lib\site-packages\ssh\packet.py to packet.cpython-33. 
pyc 
    File "C:\Python33\Lib\site-packages\ssh\packet.py", line 96 
    self.__sequence_number_out = 0L 
           ^
SyntaxError: invalid syntax 

byte-compiling C:\Python33\Lib\site-packages\ssh\pkey.py to pkey.cpython-33.pyc 
    File "C:\Python33\Lib\site-packages\ssh\pkey.py", line 307 
    except base64.binascii.Error, e: 
           ^
SyntaxError: invalid syntax 



running install_egg_info 
Removing C:\Python33\Lib\site-packages\ssh-1.8.0-py3.3.egg-info 
Writing C:\Python33\Lib\site-packages\ssh-1.8.0-py3.3.egg-info 

請問,有什麼建議嗎?謝謝。

回答

0

該庫尚未被移植到Python 3.您可能能夠找到具有或使用Python 2.7的庫。