简体   繁体   English

在 Visual Studio 代码中导入 json 模块不起作用

[英]importing json module in visual studio code not working

I'm working with an api for a discord bot and it doesn't let me import json in vs code.我正在为 discord 机器人使用 api,它不允许我在 vs 代码中导入 json。 I'm using python 3.9.1 and it gives me this message:我正在使用 python 3.9.1 它给了我这个消息:

"json" is not accessed Pylance

On the import section json displays with faded color.在进口部分 json 显示褪色。

this module can't be resolved within your configured python environment.此模块无法在您配置的 python 环境中解析。 maybe your configuration is wrong or the module isn't installed in that environment.可能您的配置错误或该模块未安装在该环境中。 If you don't care about this warning, you can disable it in the settings如果你不关心这个警告,你可以在设置中禁用它

check this out 看一下这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM