enter image description here
However, it can be successfully run in Jupyter Notebook in the same environment.
Somebody know