使用python-3.9和python-fipy-3.4.2.1-1稳定运行Manjaro。
刚刚开始使用FiPy,最终对编写单相和两相流代码感兴趣。很自然地,我尝试使用:python stokesCavity.py运行examples/flow/stokesCavity.py (从所有rst文本中剥离出来),它抛出了以下错误:
Traceback (most recent call last):
File "/home/zbinkz/HGST/Projects/Python/fipy/examples/flow/stokesCavity.py", line 117, in <module>
viewer = Viewer(vars=(pressure, xVelocity, yVelocity, velocity),
File "/usr/lib/python3.9/site-packages/fipy/viewers/__init__.py", line 130, in Viewer
raise ImportError("Failed to import a viewer: %s" % str(errors))
ImportError: Failed to import a viewer: ["matplotlib: True is not a valid value for orientation; supported values are None, 'vertical', 'horizontal'", "mayavi: No module named 'enthought'"]我在上面报告的第117行的viewer命令中修改了FIPY_VIEWER的不同值,但仍然得到相同的错误。在使用FiPy的早期阶段,我一无所知,有人知道如何解决这个问题吗?
谢谢:)
发布于 2021-11-17 22:44:49
https://stackoverflow.com/questions/69997478
复制相似问题