Python ssh 1.8.0库安装错误

时间:2013-05-17 19:32:34

标签: python ssh

尝试在Windows 7上使用Python 3.3安装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

拜托,有什么建议吗?感谢。

1 个答案:

答案 0 :(得分:0)

该库尚未移植到Python 3.您可能能够找到拥有或使用Python 2.7的库。