python3.7没有pip包_无法安装pip(python3.7.4)。它没有与python一起安装。获取pip.py也没用...

在安装Python 3.7.4时,pip并未自动安装,尽管安装程序中选择了相应的选项。尝试使用`py -m pip`命令时提示找不到pip模块。使用get-pip.py脚本进行手动安装时遇到了`OSError: [Errno 9] Bad file descriptor`错误。寻求解决Python环境中pip缺失及安装失败的方法。
摘要由CSDN通过智能技术生成

我不明白为什么pip没有与python一起安装(我在installer中有一个复选标记)。在

py -m pip返回no module named pip

我已经将Windows7、Python3.7.4安装到c:\python。在

但是,当我尝试用get-pip.py安装pip时,我得到:C:\Python>python get-pip.py

Traceback (most recent call last):

File "get-pip.py", line 22308, in

main()

File "get-pip.py", line 197, in main

bootstrap(tmpdir=tmpdir)

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

import pip._internal

File "", line 983, in _find_and_load

File "", line 967, in _find_and_load_unlocked

File "", line 668, in _load_unlocked

File "", line 638, in _load_backward_compatible

File "C:\Temp\tmpx8wd2cnb\pip.zip\pip\_internal\__init__.py", line 40, in

ule>

File "", line 983, in _find_and_load

File "", line 967, in _find_and_load_unlocked

File "", line 668, in _load_unlocked

File "", line 638, in _load_backward_compatible

many same errors (cant posted all of it here)

File "", line 668, in _load_unlocked

File "", line 638, in _load_backward_compatible

File "C:\Temp\tmpx8wd2cnb\pip.zip\pip\_vendor\requests\compat.py", line 64, in

File "", line 983, in _find_and_load

File "", line 967, in _find_and_load_unlocked

File "", line 677, in _load_unlocked

File "", line 724, in exec_module

File "", line 859, in get_code

File "", line 917, in get_data

OSError: [Errno 9] Bad file descriptor

感谢您的回答。在

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值