Error “No module named ‘xxx’” in “Calc Results by Python” Step

You are currently viewing the documentation for the latest version (2.1.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

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.

  1. 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.

  2. Open “Command Prompt” or “PowerShell” in the above directory.

  3. Type .\python.exe -m pip install xxx, and then press the Enter key.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.