Does not install correctly with pip
I have tried to install gmsh under winpython with the following, but it seem not to work. I have a gmsh-4.9.dll in "C:\winpython\WPy64-37120\pypy3.7-v7.3.7-win64\Lib", so tried to add that to sys.path, but it still does not work.
!pip install -i https://gmsh.info/python-packages --force-reinstall --no-cache-dir gmsh-dev
import gmsh
Looking in indexes: https://gmsh.info/python-packages
Collecting gmsh-dev
Downloading https://gmsh.info/python-packages/gmsh-dev/gmsh_dev-4.9.1.dev1-py2.py3-none-win_amd64.whl (37.9 MB)
Installing collected packages: gmsh-dev
Attempting uninstall: gmsh-dev
Found existing installation: gmsh-dev 4.9.1.dev1
Uninstalling gmsh-dev-4.9.1.dev1:
Successfully uninstalled gmsh-dev-4.9.1.dev1
Successfully installed gmsh-dev-4.9.1.dev1
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
C:\Users\thansen\AppData\Local\Temp/ipykernel_26016/969697088.py in <module>
1 get_ipython().system('pip install -i https://gmsh.info/python-packages --force-reinstall --no-cache-dir gmsh-dev')
----> 2 import gmsh
C:\winpython\WPy64-37120\pypy3.7-v7.3.7-win64\site-packages\gmsh.py in <module>
44 libpath = find_library("gmsh")
45
---> 46 lib = CDLL(libpath)
47
48
C:\winpython\WPy64-37120\pypy3.7-v7.3.7-win64\lib-python\3\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
364 if handle is None:
365 if flags & _FUNCFLAG_CDECL:
--> 366 pypy_dll = _ffi.CDLL(name, mode)
367 else:
368 pypy_dll = _ffi.WinDLL(name, mode)
OSError: Cannot load library C:\winpython\WPy64-37120\pypy3.7-v7.3.7-win64\Scripts\gmsh: The specified module could not be found