from matplotlib import pyplot as plt
Even though I installed matplotlib by pip in Vscode, it still says there is no module named "matplotlib". When I use Jupyter notebook instead it works. How can I use Matplotlib in Vscode?
from matplotlib import pyplot as plt
Even though I installed matplotlib by pip in Vscode, it still says there is no module named "matplotlib". When I use Jupyter notebook instead it works. How can I use Matplotlib in Vscode?
2
Answers
It seem likes you are installing in an enviroment and you run file with another enviroment. I was used to. For easy to use, you should open vscode from anacoda (with enviroment that has been install matplotlib), then the code will work
Click
{}python
in the right bottom.Then select the correct python version in the top middle.