I tried to use Python in Visual Studio 2022. I have ccreated an environment, imported packages using Pip but intellisense keeps saying they're missing.
What did i miss?
Asked
Active
Viewed 329 times
0

8oris
- 320
- 2
- 12
-
As a matter of fact, the fact that the package is underlined doesn't necessary mean that it's missing. I tried to run the script and it works. Maybe some kind of intellisense bugs or misconfigurations. :/ – 8oris Jul 25 '22 at 08:17
-
If you hover your mouse pointer over the line with the green underlines, what does it say? Or, what do your warnings say in your errors lists? Or... is it sayings it is missing despite the fact that the code seems to work? If so, then yes, you may be right that intellisense is a bit off. – Timothy G. Jul 25 '22 at 12:54
-
It says "ReportMissingImports: Import "mysql-connector" could not be resolved. In Visual Studio Options Panel, in the Text Editor section, i have noticed that there is no intellisense section for Python, it's only for C#, F#, VB, C/C++. – 8oris Jul 25 '22 at 13:05
-
1Maybe here : https://stackoverflow.com/questions/30605416/visual-studio-how-to-add-python-module-to-intellisense – 8oris Jul 25 '22 at 13:07