Import Numpy in PyCharm

After installing numpy, run the following program
"import numpy as np
a = np.arange(10)
print(a)" in pycharm, and
an error occurs when running the program: ImportError: No module named numpy
As shown in the figure:
write picture description here

Solution:

First open the pycharm menu bar File>>Settings...then click Project>>Project Interpreter

1. There is a plus sign on the far right of the Project Interpreter interface. Click the plus sign, and then enter numpy in the search box. After finding numpy, click Install Package at the bottom left. After a while, the installation is successful, as shown below.
write picture description here

2. Go back to the Project Interpreter interface and you can see that numpy is installed, as shown in the figure
write picture description here

3. After the import is successful, run the program just now, you can run it without prompting an error
write picture description here