简体   繁体   English

无法在Windows上安装python 3.6.1版的pip

[英]Unable to install pip on windows for python 3.6.1 version

I am getting the below error while using the command: 使用命令时出现以下错误:

python get-pip.py python get-pip.py

Error: 错误:

c:\Python>python get-pip.py
Traceback (most recent call last):
  File "get-pip.py", line 20061, in <module>
    main()
  File "get-pip.py", line 194, in main
    bootstrap(tmpdir=tmpdir)
  File "get-pip.py", line 82, in bootstrap
    import pip
  File "C:\Users\dell\AppData\Local\Temp\tmpa0q8wceq\pip.zip\pip\__init__.py", l
ine 26, in <module>
  File "C:\Users\dell\AppData\Local\Temp\tmpa0q8wceq\pip.zip\pip\utils\__init__.
py", line 27, in <module>
  File "C:\Users\dell\AppData\Local\Temp\tmpa0q8wceq\pip.zip\pip\_vendor\pkg_res
ources\__init__.py", line 35, in <module>
  File "c:\Python\lib\plistlib.py", line 65, in <module>
    from xml.parsers.expat import ParserCreate
  File "c:\Python\lib\xml\parsers\expat.py", line 4, in <module>
    from pyexpat import *
ImportError: DLL load failed: The specified module could not be found.

I'm pretty sure that pip comes with python 3 and up. 我很确定pip随附python 3及更高版本。 If you have troubles running only "pip" from the terminal i'd recommend you try: python -m pip ... 如果您在从终端仅运行“ pip”时遇到麻烦,我建议您尝试: python -m pip ...

Try to use the 'Alternative instructions' from this post. 尝试使用从“其他说明” 职位。

Hope this can help. 希望这会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM