代码
import requests
res = requests.get(‘https://www.cnblogs.com/easyidea/p/10214559.html’)
res.encoding = ‘utf-8’
print(res.text)
报错内容
Traceback (most recent call last):
File “C:/Users/Administrator/PycharmProjects/untitled2/test.py”, line 1, in
import requests
File “D:\Program Files\Python38\lib\requests_init_.py”, line 43, in
import urllib3
ModuleNotFoundError: No module named ‘urllib3’