Fixing the following error:
ModuleNotFoundError: No module named 'numpy.testing.nosetester'
generated by Python import command:
from sklearn import datasets
Not using the right pip version, so upgrade it with:
python3 -m pip install --upgrade pip
Scipy won’t run because of following error:
ImportError: cannot import name 'stats'
so reinstall scipy along with numpy:
pip install --upgrade --force-reinstall scipy