Error “No module named ‘xxx’” in “Calc Results by Python” Step
Symptom:
An error occurred when the “Calc Results by Python” Step was executed, indicating that “ModuleNotFoundError: No module named 'xxx'.”.
Possible causes:
The Python library was not installed successfully, or the installed Python library is incompatible with the version of Python integrated in Mech-Vision.
Solution:
Reinstall the corresponding Python libraries.
-
Enter the directory where Python is stored in the Mech-Vision installation directory, such as
D:Mech-Vision & Mech-Viz-1.8.2Mech-Vision\python
. -
Open “Command Prompt” or “PowerShell” in the above directory.
-
Type
.\python.exe -m pip install xxx
, and then press the Enter key.