我无法在计算机上安装请求模块

发布于 2025-02-14 02:15:49 字数 428 浏览 0 评论 0原文

运行python项目时,我会遇到此错误(我使用的是Windows 10上的Python 3.10.5):

ModuleNotFoundError: No module named 'requests'

尽管我Infact Infact 已安装模块。我还尝试卸载它并再次安装它,但这无效。我在另一台计算机上再次发生了冲突,并安装了Discord.py,但是我似乎无法在这里工作。我使用以下方式安装了Discord.py v2

pip install -U git+https://github.com/Rapptz/discord.py 

I get this error when I run my python project(I'm using python 3.10.5 on Windows 10):

ModuleNotFoundError: No module named 'requests'

Despite the fact that I do infact have the module installed. I also tried uninstalling it and installing it again, but that didn't work. I had a conflict on my other computer again with requests and installing discord.py, but I can't seem to get it to work here. I installed discord.py v2 using:

pip install -U git+https://github.com/Rapptz/discord.py 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天煞孤星 2025-02-21 02:15:49

在命令提示中类型:PY -3 -M PIP安装请求
如果未安装,请转到给定的地址,然后删除所有说请求并再次上传的文件夹。

In Command Prompt Type: py -3 -m pip install requests
If it doesn't install, go to the given address and delete all the folders that say requests and upload again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文