windows下Python工程使用eclipse油藏数值模拟器的文件读写c/c++算法库libecl

发布于:2022-08-05 ⋅ 阅读:(387) ⋅ 点赞:(0)

windows下Python工程使用eclipse油藏数值模拟器的文件读写c/c++算法库libecl

1、编译生成dll,参考windows下编译libecl.dll

windows下sln成果的github地址:Github库地址,Gitee地址:gitee库地址
2、复制build\bin\libecl.dll到操作系统的Python目录下,本人路径
C:\Users\Higer\AppData\Local\Programs\Python\Python310\Lib\site-packages\ecl
libecl.dll复制到python目录下
该文件夹下的内容来源于:GitHub下载的ecl源文件的 ecl-2.10.1\python\ecl目录(将该目录直接复制到C:\Users\Higer\AppData\Local\Programs\Python\Python310\Lib\site-packages\ecl)
ecl文件夹内容来源
3、在环境变量中添加PATH 和PYTHONPATH 两个变量,均指向`%INSTALLPATH%\lib\pythonX.Y\site-package这个路径。本人Python3.10,X.Y=3.10

For libecl to be accessible in Python the %INSTALLPATH%\lib\pythonX.Y\site-package and Python subdirectories must be added to the PATH and PYTHONPATH variables. Where pythonx.y is the current Python version e.g. (python2.7, python3.6 etc.)

4、在python工程中就可以使用啦


网站公告

今日签到

点亮在社区的每一天
去签到