ModuleNotFoundError: No module named ‘requests‘

Pycharm reports an error when executing a Python project: ModuleNotFoundError: No module named'requests'

Solution:

1. Install requests

PyCharm–Terminal enter the Python Scripts directory and execute

pip install requests

Insert picture description here

2. Configure the Interpreter path

File–Settings–Project:xxx–Projects Interpreter–

Insert picture description here
Insert picture description here
solve!

Guess you like

Origin blog.csdn.net/weixin_47542175/article/details/113841473