The log reported an error: No module named ‘xxx’
Symptom:
The Console tab in the Log panel in Mech-Vision shows the error message “No module named ‘xxx’”.
Affected Software Versions:
All versions
Possible Cause:
The corresponding Python libraries were not installed.
Solution:
Lower than 1.6.0:
-
Use the shortcut key WIN + R to open the Run window.
-
Type
cmd
and click OK to open the cmd window. -
Type
pip uninstall xxx
, and then press Enter to uninstall the corresponding libraries. -
Type
pip install xxx
, and then press Enter to install the corresponding libraries.
Above 1.6.0:
-
Open the Python folder in the installation directory of the communication component.
-
Type cmd in the address bar and click Enter to open the cmd window.
-
Type
.\python.exe -m pip uninstall xxx
, and then press Enter to uninstall the corresponding libraries. -
Type
.\python.exe -m pip install xxx
, and then press Enter to install the corresponding libraries.