提示“No module named ‘requests’”
CXZS-Git opened this issue · comments
CXZS_Git commented
D:\Onedrive\文档\GitHub\dowsDNS>py start.py
Traceback (most recent call last):
File "start.py", line 8, in
import requests
ModuleNotFoundError: No module named 'requests'
上述提示在两台电脑上均出现了。
我本机是Python 3环境,办公电脑是Python 2环境。
chensongbin commented
就是说你缺少requests模块,需要先安装requests模块
CXZS_Git commented
执行了“pip install requests”就能成功运行了。
感谢。