【问题标题】:Issue with installing xmltodict on python 3.6.3 on Windows 7在 Windows 7 上的 python 3.6.3 上安装 xmltodict 的问题
【发布时间】:2023-03-16 02:10:01
【问题描述】:

我想在 Windows 7 机器上的现有 python 3.6.3 上安装 xmltodict 模块。我尝试了以下步骤,但出现错误。请帮帮我。

Python 版本:

C:\Users\MaS>pythona
Python 3.6.3 (v3.6.3:2c5fed8, Oct  3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)]
 on win32

尝试了以下步骤:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\MaS\AppData\Local\Programs\Python\Python36-32\Scripts>pip.exe install xmltodict
Collecting xmltodict
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError '<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACD30>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACF70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACE70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACDB0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACBB0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/  Could not find a version that satisfies the requirement xmltodict (from versions: )
No matching distribution found for xmltodict

C:\Users\MaS\AppData\Local\Programs\Python\Python36-32\Scripts>pip3.6.exe
install xmltodict
Collecting xmltodict
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACCF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACDF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACFD0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACF50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACE90>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Could not find a version that satisfies the requirement xmltodict (from versions: )
No matching distribution found for xmltodict

C:\Users\MaS\AppData\Local\Programs\Python\Python36-32\Scripts>pip3.exe in
stall xmltodict
Collecting xmltodict
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACED0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACF70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACF30>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACE70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError'<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x033ACD70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/xmltodict/
  Could not find a version that satisfies the requirement xmltodict (from versions: )
No matching distribution found for xmltodict

C:\Users\MaS\AppData\Local\Programs\Python\Python36-32\Scripts>

【问题讨论】:

  • 亲爱的 Idlehands,我无法关注您提到的有关 gntp 模块的帖子。您能否提供手动安装目标 xmltodict 模块的步骤(如果可能)。谢谢
  • 我不熟悉 xmltodict 模块,但是通过谷歌快速搜索将我带到了这里:pypi.python.org/pypi/xmltodict#downloads。尝试下载 whl 文件并按照链接线程上的说明进行操作。根据线程,这似乎是防火墙问题。您在安装其他模块时遇到问题吗?
  • 非常感谢 Idlehands 抽出宝贵时间。通过结合你的两个 cmets,我的问题得到了解决。已在答案中提供了详细信息。再次感谢
  • 很高兴它有帮助。感谢您详细发布最终解决方案。

标签: python python-3.x


【解决方案1】:

首先“非常感谢” Idlehands(他对我的帖子发表了评论)。结合他的两个cmets,问题就解决了。 我采取的步骤: 步骤 1:如 Idlehands 所述,从 https://pypi.python.org/pypi/xmltodict#downloads 下载文件 'xmltodict-0.11.0-py2.py3-none-any.whl (md5)'。 步骤 2:以管理员权限启动命令提示符(我不确定它是否在没有管理员的情况下工作) 步骤 3:转到文件(在步骤 1 中)所在的位置。 步骤 4:运行 pip install 命令。 请看下面: Microsoft Windows [版本 6.1.7601] 版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Windows\system32>cd C:\Users\MaS\Downloads

C:\Users\MaS\Downloads>pip install xmltodict-0.11.0-py2.py3-none-any.whl 处理 c:\users\MaS\downloads\xmltodict-0.11.0-py2.py3-none-any.whl 安装收集的包:xmltodict 成功安装xmltodict-0.11.0

C:\Users\MaS\Downloads>

【讨论】:

    猜你喜欢
    • 2018-04-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-26
    相关资源
    最近更新 更多