can't import matplotlib in vs code #24931
-
Importing matploblib doesn't work in vs code when I choose an interpreter from an anaconda environment. In the conda console matplotlib is imported without issues in python launched in that specific anaconda envrionment. Also in vs code if I choose python interpreter from the 'base' environment (anaconda3/python.exe) then I'm able to import matploblib in vs code. But it doesn't work with interpreter from another environment. I get the error: Logs from output > Python: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@snate28 Can you make sure that you have right versions of python in both |
Beta Was this translation helpful? Give feedback.
Have you tried launching VS Code from the activated conda powershell. You can type
code .
to launch from that location.