admin管理员组

文章数量:1392059

I am using Windows. I executed the below commands on the command prompt:

python -m pip install matplotlib. 
pip3 install matplotlib

But VS 2022 is not recognizing the matplotlib.

Below is the code:

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()

When I verify the installation, it says its already installed:

C:\Users\Dell>python --version
Python 3.13.1

本文标签: No module named 39matplotlib39 in visual studio 2022 python projectStack Overflow