简体   繁体   English

Python ssh 1.8.0库安装错误

[英]Python ssh 1.8.0 library installation errors

I got compilation errors when trying to install Python SSH 1.8.0 library using Python 3.3 on Windows 7. I am surprised to get notification of Syntax Errors. 尝试在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

Please, any suggestions ? 请提出任何建议? Thanks. 谢谢。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM