Remove the folder numpy and reinstall numpy rm -rf ~/.local/lib/python3.6/site-packages/numpy pip install numpy