问题描述
我已经使用这个安装了 Fenics
到目前为止一切正常。
现在我想用 Pycharm 尝试使用 fenics 编写程序。它以
开头来自 fenics 导入 *
然后我收到错误
ModuleNotFoundError: 没有名为“fenics”的模块。
我使用 Python 3.9,PyCharm 2021.1.2。
问题可能出自某些拧干的目录吗?
解决方法
确保您已在本地计算机上安装了 fenics,并将其添加到您的 Pycharm 包库中。
https://fenics.readthedocs.io/en/latest/installation.html
https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html