![](/img/trans.png)
[英]pyinstaller - 'No module named...' error with scripts import
[英]how to fix Import Error: No module named... in python with VScode
安裝 code-runner 並將代碼放在 settings.json 文件夾下面
"code-runner.executorMap": {
"python": "python3 -u",
}
"python": "(帶有模塊的 python 版本)-u",
我的猜測是您從未安裝過 requests 模塊。
你需要做
pip install requests
讓 Python 找到它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.