1. Query in cmd: there are 2 versions of matplotlib, on the computer, and then follow the above prompts to enter a string of "% - sharp-upgrade-" commands, which should be the latest version, but the old version may still exist.
2. Use Geany to enter the following command and find that it can be run.
import matplotlib.pyplot as plt
squa=
plt.plot (squa)
plt.show ()
3. Enter the same command in Pycharm, the feedback is as follows, how to solve it?
F:PycharmvenvScriptspython.exe F:/Pycharm/s.py
Traceback (most recent call last):
File "F:/Pycharm/s.py", line 1, in < module >
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named "matplotlib"
Process finished with exit code 1