sách gpt4 ai đã đi

python - 没有名为 pip 的模块 - Python 3.9

In lại 作者:行者123 更新时间:2023-12-04 18:33:13 26 4
mua khóa gpt4 Nike

我通常不使用 python,但现在需要它。所以我安装了 python 3.9(在 Windows 10 上的 Ubuntu/WSL2 子系统上)。
我需要 pip 。我认为它应该默认存在(但它不存在):

Starting with Python 3.4, it is included by default with the Python binary installers.(https://docs.python.org/3/installing/index.html)


所以我继续到下一页( https://packaging.python.org/tutorials/installing-packages/)。它告诉我要做
python -m ensurepip --default-pip
这也不起作用。所以我测试了下一条指令:
sudo wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
这失败了

ModuleNotFoundError: No module named 'distutils.command'


难道我做错了什么?还是某处有错误?

1 Câu trả lời

它看起来像一个文档错误。我按照此处的说明进行操作,并且有效:
https://askubuntu.com/questions/1239829/modulenotfounderror-no-module-named-distutils-util

关于python - 没有名为 pip 的模块 - Python 3.9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65928875/

26 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com