EnvironmentError: Gmsh version must be >= 2.0

孤街醉人 提交于 2019-12-24 00:58:31

问题


I am new to fipy, so excuse my ignorance if I ask something that should be obvious. But I fail to run an already existing (and working - on other machines) script, getting the EnvironmentError: Gmsh version must be >= 2.0. I may have missed something during the installation? Fipy manual is a bit vague about implementation of gmsh. It only provides the link to download file and that meshes can be generated by it, but it doesn't say WHERE gmsh should be installed (so I have my gmsh-3.0.3-Windows in the default, i.e. in Program Files (x86). Should it be installed in some particular directory, perhaps the same as fipy? (I really apologise for a stupid question, but this is the case when if you know what question to ask, you already know the answer and don't need to ask at all.)

For completeness, I am running it on Windows 7, Python 2.7 from Anaconda distribution, fipy 3.1.3.


回答1:


I see. I made a desperate try - copied the gmsh.exe file into ..Anaconda2/Scripts/ and it did the job!

I think the fipy documentation should mention this. The chapter on mesh generation only says that you need gmsh, but does not specify that the application (.exe) has to be in the directory with python modules. But this is not quite intuitive (it is not a python file, not installed by pip, just a downloaded application from the web) and yet it is essential for running it.



来源:https://stackoverflow.com/questions/45405916/environmenterror-gmsh-version-must-be-2-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!