实际上,我想创建我的第一个 django 项目。在 cmd 中进行一些编码后,我使用 Visual Studio Code 打开代码。我在状态栏上选择了python解释器,然后将其更改为我的数字环境中安装的python解释器。之后,我收到消息说 linter pylint 未安装。我安装后,出现了这些错误。
这个解决方案 https://github.com/microsoft/vscode-python/issues/14327#issuecomment-757408341为我工作。只是在这里重复一下:
1. Go to the `pyvenv.cfg` file in the Virtual environment folder
2. Set the `include-system-site-packages` to `true` and save the change
3. Reactivate the virtual environment.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)