Some problems and solutions during the installation and use of pm4py

Installation of pm4py

The installation method is the same as the general python third-party library method, but some problems may occur when using it. Here are some useful solutions for personal testing.

Problem 1: An error message that the specified module cannot be found appears

import cvxopt.base
ImportError: DLL load failed: 找不到指定的模块。

It seems to be related to the cvxopt package. Most of the solutions on the Internet require uninstalling numpy and cvxopt libraries, and then reinstalling them through the corresponding whl files. It is very troublesome, and the link URLs of the whl files provided are invalid. Finally, it was solved in a very simple way: Zhihu article

There is no need to uninstall the numpy library, just reinstall cvxopt. After uninstalling cvxopt, just install it through the following statement in the anaconda prompt: conda install -c conda-forge/label/gcc7 cvxoptIn this way, no error will be reported after the installation is completed.

Question 2: pm4py draws Chinese garbled characters

After searching for a long time how to display Chinese normally, I finally found this method to be useful: pm4py, graphviz drawing Chinese garbled problem
Find the pydotplus package, find the graphviz.py file in this package, find the Node class in this file, and add a line to set the font Just code.

Guess you like

Origin blog.csdn.net/codelady_g/article/details/132431276