我无法在计算机上安装请求模块
运行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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在命令提示中类型: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.