Python: ImportRequestsError: No module named 'requests'解决方法
Python: ImportRequestsError: No module named 'requests'解决方法

Python: ImportRequestsError: No module named 'requests'解决方法

运行Python程序时,出现下面错误:

import requests  ModuleNotFoundError: No module named ‘requests’

原因:没有导入requests库

解决办法:

开始菜单选择运行,输入cmd运行,然后cd命令进入到python安装目录下的Scripts文件中,

然后输入pip install requests,就好了。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

Title - Artist
0:00