当我试图在木星笔记本中使用'pysftp‘模块时,我收到了以下错误:
最终目标:通过一个用Python编写的基于web的应用程序,将文件从Unix服务器自动下载到Windows文件夹。
在此过程中,当我试图连接到WINSCP以允许python代码登录到Unix服务器(username@hostname)时,我使用了'pystftp‘模块,但是我得到了以下错误消息:
错误消息:ModuleNotFoundError: No module named 'pysftp'
采取的行动:
pip list -查看python中已经安装的包;我没有显示pysftppip install pysftp -安装pysftp模块;在jupyter记事本中运行以下错误
错误信息:
Collecting pysftp
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000227A34A2400>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pysftp/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000227A33BC4A8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pysftp/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000227A33BCE80>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pysftp/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000227A33BCEB8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pysftp/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000227A33BCE48>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',)': /simple/pysftp/
Could not find a version that satisfies the requirement pysftp (from versions: )
No matching distribution found for pysftp要求:请指导并帮助我实现我的最终目标。
我在用朱庇特笔记本写代码
谢谢你,普奈
发布于 2020-01-22 11:01:17
首先建议:您应该检查的位置,并从该目录下转到cmd ->并键入:pip安装pysftp。如果安装成功,那么问题就在脚本运行的解释器选择中。
https://stackoverflow.com/questions/59857197
复制相似问题