pyssh 0.3的新副本语法错误?(Python)

2024-06-01 03:16:00 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试测试pyssh,但是每当我尝试导入它时都会遇到语法错误。在

Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>> 
Traceback (most recent call last):
File "C:\Users\Corey\Desktop\Python\TheOne.py", line 1, in <module>
import SSHController
File "C:\Users\Corey\Desktop\Python\SSHController.py", line 19, in <module>
import pyssh
File "C:\Users\Corey\Desktop\Python\pyssh\__init__.py", line 82
print """User input required for ssh connection.
(Type Ctrl-C to abort connection.)"""

                                     ^
SyntaxError: invalid syntax

Tags: inpyimportfortypelineconnectionusers
1条回答
网友
1楼 · 发布于 2024-06-01 03:16:00

据我所知,pyssh不支持python3.X,从您收到的错误消息中可以明显看出这一点。在python3.X中,print语句是一个函数。在

相关问题 更多 >