在Windows 7上的python 3.6.3上安装xmltodict的问题

时间:2018-01-10 02:44:07

标签: python python-3.x

我想在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>

1 个答案:

答案 0 :(得分:1)

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

C:\ Windows \ system32&gt; cd C:\ Users \ MaS \ Downloads

C:\ Users \ MaS \ Downloads&gt; 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 \下载&GT;