I'm encountering an issue with Pylance, the language server for Python in Visual Studio Code. Despite having the pandas module installed in my Python environment, Pylance is reporting
Код: Выделить всё
Import "pandas" could not be resolved from source--Pylance(reportMissingModuleSource)Additional Information:
Код: Выделить всё
Visual Studio Code version: 1.74.3 Python extension version: v2022.20.2 Pylance version: v2023.5.30 Pandas: 2.0.3 Operating System: Ubuntu 22.04 LTS - I've verified that pandas is installed in my Python environment. When I run my code, it works without any issues.
- I've tried restarting Visual Studio Code, reinstalling the Python extension, but the issue persists.
- I've ensured that the correct Python interpreter is selected for my project.
Despite these efforts, Pylance still cannot detect the pandas module.
Any suggestions on how to troubleshoot or resolve this issue would be greatly appreciated. Thank you!
Источник: https://stackoverflow.com/questions/781 ... -installed