Difftaichi/examples/liquid.py 报错 module 'taichi' has no attribute 'layout'

windows上运行不了这个例子

E:\pythonProject\venv\Scripts\python.exe E:/pythonProject/main.py 
[Taichi] version 0.7.31, llvm 10.0.0, commit fa68168a, win, python 3.7.4 
[Taichi] Starting on arch=cuda Traceback (most recent call last):   
File "E:/pythonProject/main.py", line 60, in <module>     @ti.layout   
File "E:\pythonProject\venv\lib\site-packages\taichi\__init__.py", line 30, in __getattr__     
raise AttributeError(f"module '{__name__}' has no attribute '{attr}'") 
AttributeError: module 'taichi' has no attribute 'layout'  Process finished with exit code 1

看你的报错有可能是你用了taichi==0.7.31


用下taichi==0.6.41再试试