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

You are currently viewing the documentation for version 2.0.0. To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ To use the latest version, visit the Mech-Mind Download Center to download it.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

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.