首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ModuleNotFoundError:没有名为“pysftp”的模块

ModuleNotFoundError:没有名为“pysftp”的模块
EN

Stack Overflow用户
提问于 2020-01-22 10:08:22
回答 1查看 10.6K关注 0票数 0

当我试图在木星笔记本中使用'pysftp‘模块时,我收到了以下错误:

最终目标:通过一个用Python编写的基于web的应用程序,将文件从Unix服务器自动下载到Windows文件夹。

在此过程中,当我试图连接到WINSCP以允许python代码登录到Unix服务器(username@hostname)时,我使用了'pystftp‘模块,但是我得到了以下错误消息:

错误消息:ModuleNotFoundError: No module named 'pysftp'

采取的行动:

  1. pip list -查看python中已经安装的包;我没有显示pysftp
  2. pip install pysftp -安装pysftp模块;在jupyter记事本

中运行以下错误

错误信息:

代码语言:javascript
复制
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

要求:请指导并帮助我实现我的最终目标。

我在用朱庇特笔记本写代码

谢谢你,普奈

EN

回答 1

Stack Overflow用户

发布于 2020-01-22 11:01:17

首先建议:您应该检查的位置,并从该目录下转到cmd ->并键入:pip安装pysftp。如果安装成功,那么问题就在脚本运行的解释器选择中。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59857197

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档