更新完vs2022后,打开文件就一直有这提示(语言-python|开发工具-visual studio)

有没有大佬知道这是什么情况Σ(゚∀゚ノ)ノ
自从更新完vs2022后,打开文件时就会有这条提示

img

就是不支持python2.0-2.9的版本了,将按照3.0-3.9版本进行执行类的检查。
因为现在python3.0及以上的版本可以说已经很常见了,VS2022版显示这个也不奇怪。

Hi, 你这个看下这个文章: https://devblogs.microsoft.com/python/changes-to-how-we-bundle-python-in-visual-studio/

  • We’re making this change now as the language server in Visual Studio 2019 has been deprecated, while Visual Studio 2022 ships with Pylance, our modern and performant language server.

VS 2022中自带的python语言服务器是Pylance跟VS 2019不同,Pylance只支持Python 3或者更高版本,不支持Python 2.x。