【问题标题】:Error installing jira on pip在 pip 上安装 jira 时出错
【发布时间】:2016-03-31 12:27:18
【问题描述】:

我正在尝试在 pip 上安装 jira,但出现以下错误:

  /usr/lib64/nagios/plugins]#python -m pip install jira
Collecting jira
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/jira/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/jira/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/jira/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/jira/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/jira/
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/jira/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/jira/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/jira/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/jira/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, 'Name or service not known'))': /simple/jira/
  Could not find a version that satisfies the requirement jira (from versions: )
No matching distribution found for jira

任何帮助将不胜感激。

【问题讨论】:

  • 你是防火墙还是代理?
  • 是的,是否有手动方式来实现该安装,或者需要作为信息提供给网络管理员的信息
  • 正如@karimtabet 所说,您在容器中吗?
  • 不,我ve found the library, but dont知道如何手动安装它-> pypi.python.org/pypi/jira/0.50
  • 您必须下载 tar.gz 文件 (jira-0.50.tar),解压缩,转到路径并使用终端类型 python setup.py install

标签: python pip


【解决方案1】:

ProtocolError 表示 pip 正在尝试将 /simple/jira/ 解析为 DNS 主机名,而不是 pypi.python.org。问题可能出在~/.pip/pip.conf

你是不是在一个容器里?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-12-06
    • 1970-01-01
    • 2017-04-17
    • 2018-12-03
    • 2018-01-31
    • 2018-12-11
    相关资源
    最近更新 更多