Issue
tried program
import matplotlib.pyplot as plt
import numpy as np
xpoints = np.array([1, 8])
ypoints = np.array([3, 10])
plt.plot(xpoints, ypoints)
plt.show()
pip is now installed, after reading michael s question the "pip install matplotlib " works
however the same thing python error is occuring
C:\Users\M0182965\PycharmProjects\EMC2.00\venv\Scripts\python.exe C:/Users/M0182965/PycharmProjects/EMC2.00/main.py
Traceback (most recent call last):
File "C:\Users\M0182965\PycharmProjects\EMC2.00\main.py", line 1, in <module>
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'
Process finished with exit code 1
Solution
pip install does not work for the virtual environment for the newest pycharm. You need to install via project interpreter for every project individually.
Answered By - mahle-majstr
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.