Issue of module not found in Python 3.10

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s