Issue of module not found in Python 3.10

Posted on November 15, 2022 at 08:17 AM


After upgrading python from Python 3.8 to 3.10, modules look installed in virtual environment previously, but cannot import. It will report e.g. module not found numpy, module not found pandas

Try uninstall install version and install again like

pip install numpy
pip install XXXX

Still same error when e.g. import numpy

Solution:

pip uninstall numpy
python -m pip install --user --upgrade numpy