无法在windows for python 3.6.1版本

时间:2017-06-26 15:52:28

标签: python python-3.6

使用命令时出现以下错误:

python get-pip.py

错误:

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.

2 个答案:

答案 0 :(得分:1)

我很确定pip带有python 3及更高版本。如果你有麻烦只运行&#34; pip&#34;在终端我建议您尝试:python -m pip ...

答案 1 :(得分:-1)

尝试使用&#39;替代说明&#39;来自this帖子。

希望这可以提供帮助。