【问题标题】:I am unable to install plotly and geopandas package with pip, what should I do?我无法使用 pip 安装 plotly 和 geopandas 包,我该怎么办?
【发布时间】:2019-06-14 13:13:33
【问题描述】:

我尝试以管理员身份在 windows CMD 中使用 pip 进行安装,但我不断收到以下错误:

$pip install plotly
Collecting plotly
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x05EA24F0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/plotly/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x05E663F0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/plotly/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x05E79450>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/plotly/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x05E79870>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/plotly/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x05E79BD0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/plotly/
  Could not find a version that satisfies the requirement plotly (from versions: )
No matching distribution found for plotly

我有 python 3.7 和 windows 10。如果重要的话,我还有 06/14-19 的最新版本的 pip 和 anaconda。

【问题讨论】:

  • 我在新的虚拟环境中尝试了同样的命令pip install plotly,没有问题。 (Windows 10、Python 3.7 Anaconda)

标签: python cmd pip installation plotly


【解决方案1】:

请提供一些更具体的信息。系统、python版本等。只在conda上试过? 试试mb:

sudo pip install plotly 

sudo pip3 install plotly

在 conda 上,这有可能有效:

conda install -c plotly plotly

【讨论】:

  • 我改变了我的问题,请帮忙!
  • 我仍然没有得到关于我上面提到的命令的信息......你检查过它们吗?如果是,发生了什么? (带有 conda ofc 的命令)
  • 如果仍然没有 - 尝试禁用防病毒软件,或任何可以阻止 pip 连接的东西。
  • 这似乎在 Windows 上。使用 sudo 不适用。这个答案可以/应该被删除。
  • 我的答案是在编辑问题之前发布的,没有关于系统和环境的信息。仔细阅读。版主先生,您的评论应该被删除
猜你喜欢
  • 1970-01-01
  • 2020-10-26
  • 1970-01-01
  • 2015-08-24
  • 2023-02-15
  • 1970-01-01
  • 1970-01-01
  • 2020-09-01
  • 1970-01-01
相关资源
最近更新 更多