Numpy in VS Code Ubuntu 20.04

  numpy, python-3.x, ubuntu, visual-studio-code

I am new to Ubuntu and is trying to get Numpy working on VS Code. Following is my code:

import matplotlib.pyplot as plt
import numpy as np

x = [1,2,3,4]
y = [3,5,7,9]
plt.grid(True)
plt.xlabel("My X values")
plt.ylabel("My Y values")
plt.plot(x,y, 'b-^', lineWidth = 3, markersize = 7, label = "Blue Line")
plt.legend(loc = "upper center")
plt.show()

But the debugger gives me the following error:

No module named 'numpy.core._multiarray_umath'

Does anyone knows how to install that module? Thank you so much in advance.

Source: Python-3x Questions

LEAVE A COMMENT