简体   繁体   English

尝试安装 discord.py 并显示“没有名为 pip 的模块”

[英]Trying to install discord.py and it says “no module named pip”

When running the command to install discord.py运行命令安装discord.py

python3 -m pip install -U discord.py

It says that there is no module named pip and thus I cannot complete the download or installation.它说没有名为 pip 的模块,因此我无法完成下载或安装。 I checked, and pip is installed on my machine.我查了一下,我的机器上安装了pip。 I am running Ubuntu.我正在运行 Ubuntu。

Just do sudo apt-get python3-pip只需执行sudo apt-get python3-pip

Then do pip3 install -U discord.py然后做pip3 install -U discord.py

Should fix it.应该修复它。

Do sudo apt install python3-pipsudo apt install python3-pip

And then pip3 install -U discord.py然后pip3 install -U discord.py

I would have just commented on the previous answer but I'm a guest我会评论上一个答案,但我是客人

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

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