Kein Modul namens 'Matplotlib' im Visual Studio 2022 Python Project
Posted: 12 Mar 2025, 00:00
Ich benutze Windows. Ich habe die folgenden Befehle in der Eingabeaufforderung ausgeführt: < /p>
Wenn ich die Installation überprüfe, heißt es, dass es bereits installiert ist:
Code: Select all
python -m pip install matplotlib.
pip3 install matplotlib
< /code>
, aber gegen 2022 erkennt die Matplotlib nicht.import matplotlib.pyplot as plt
import numpy as np
xpoints = np.array([0, 6])
ypoints = np.array([0, 250])
plt.plot(xpoints, ypoints)
plt.show()
Wenn ich die Installation überprüfe, heißt es, dass es bereits installiert ist:
Code: Select all
C:\Users\Dell>python --version
Python 3.13.1