无法在Windows 10上安装Python 3.7.4的pip

时间:2019-09-07 15:15:03

标签: python python-3.x pip

我已经安装了Python 3.7.4,但没有安装pip。

使用IDLE(显然是pip)安装Python。但是当我要安装pip时,它会显示此错误。

Traceback (most recent call last):

File "get-pip.py", line 22312, in <module>
    main()

File "get-pip.py", line 197, in main
    bootstrap(tmpdir=tmpdir)

File "get-pip.py", line 82, in bootstrap
    import pip._internal

File "<frozen importlib._bootstrap>", line 983, in _find_and_load

File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

File "<frozen importlib._bootstrap>", line 668, in _load_unlocked

File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible

File "C:\Users\Hp\AppData\Local\Temp\tmp7m70r5qb\pip.zip\pip\_internal\__init__.py", line 40, in <module>

File "<frozen importlib._bootstrap>", line 983, in _find_and_load

File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

File "<frozen importlib._bootstrap>", line 668, in _load_unlocked

File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible

File "C:\Users\Hp\AppData\Local\Temp\tmp7m70r5qb\pip.zip\pip\_internal\cli\autocompletion.py", line 8, in <module>

File "<frozen importlib._bootstrap>", line 983, in _find_and_load

File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

File "<frozen importlib._bootstrap>", line 668, in _load_unlocked

File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible

File "C:\Users\Hp\AppData\Local\Temp\tmp7m70r5qb\pip.zip\pip\_internal\cli\main_parser.py", line 11, in <module>

File "<frozen importlib._bootstrap>", line 983, in _find_and_load

File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

File "<frozen importlib._bootstrap>", line 668, in _load_unlocked

File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible

File "C:\Users\Hp\AppData\Local\Temp\tmp7m70r5qb\pip.zip\pip\_internal\commands\__init__.py", line 6, in <module>

File "<frozen importlib._bootstrap>", line 983, in _find_and_load

File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

File "<frozen importlib._bootstrap>", line 668, in _load_unlocked

File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible

File "C:\Users\Hp\AppData\Local\Temp\tmp7m70r5qb\pip.zip\pip\_internal\commands\completion.py", line 6, in <module>

File "<frozen importlib._bootstrap>", line 983, in _find_and_load

  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 668, in _load_unlocked

  File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible

  File "C:\Users\Hp\AppData\Local\Temp\tmp7m70r5qb\pip.zip\pip\_internal\cli\base_command.py", line 21, in <module>

  File "<frozen importlib._bootstrap>", line 983, in _find_and_load

  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 668, in _load_unlocked

  File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible

  File "C:\Users\Hp\AppData\Local\Temp\tmp7m70r5qb\pip.zip\pip\_internal\download.py", line 14, in <module>

  File "<frozen importlib._bootstrap>", line 983, in _find_and_load

  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 668, in _load_unlocked

  File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible

  File "C:\Users\Hp\AppData\Local\Temp\tmp7m70r5qb\pip.zip\pip\_vendor\requests\__init__.py", line 114, in <module>

  File "<frozen importlib._bootstrap>", line 983, in _find_and_load

  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 668, in _load_unlocked

  File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible

  File "C:\Users\Hp\AppData\Local\Temp\tmp7m70r5qb\pip.zip\pip\_vendor\requests\utils.py", line 26, in <module>

  File "<frozen importlib._bootstrap>", line 983, in _find_and_load

  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 668, in _load_unlocked

  File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible

  File "C:\Users\Hp\AppData\Local\Temp\tmp7m70r5qb\pip.zip\pip\_vendor\requests\_internal_utils.py", line 11, in <module>

  File "<frozen importlib._bootstrap>", line 983, in _find_and_load

  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 668, in _load_unlocked

  File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible

  File "C:\Users\Hp\AppData\Local\Temp\tmp7m70r5qb\pip.zip\pip\_vendor\requests\compat.py", line 64, in <module>

  File "<frozen importlib._bootstrap>", line 983, in _find_and_load

  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked

  File "<frozen importlib._bootstrap_external>", line 724, in exec_module

  File "<frozen importlib._bootstrap_external>", line 859, in get_code

  File "<frozen importlib._bootstrap_external>", line 917, in get_data

OSError: [Errno 9] Bad file descriptor

我被困住并花费了大量时间。任何帮助将不胜感激。

0 个答案:

没有答案