No module named 'gmsh'

Sorry to bother you! I want to ask about the download of Gmsh. Recently, I was going to use gmsh to draw a grid, when I called it, it would display No module named 'gmsh', but I have installed gmsh under fenicsx-env using conda install -c conda-forge gmsh command, and the interpreter in pycharm showed that gmsh already exists, I would like to ask what is wrong?
Remarks Version:
fenics-dolfinx: 0.9.0
gmsh: 4.13.1

I look forward to your reply, thank you!

Traceback (most recent call last):
  File "/mnt/d/femcode/fem/Mesh/demo_gmsh.py", line 25, in <module>
    import gmsh
ModuleNotFoundError: No module named 'gmsh'
ERROR conda.cli.main_run:execute(124): `conda run python /mnt/d/femcode/fem/Mesh/demo_gmsh.py` failed. (See above for error)

Try pygmsh instead of gmsh:

pip install pygmsh

After I deleted gmsh, I used the command you recommended to download it again, and there will be a new error. Thank you!

Traceback (most recent call last):
  File "/mnt/d/femcode/fem/Mesh/demo_gmsh.py", line 25, in <module>
    import gmsh
  File "/home/zqaixj1234/miniconda3/envs/fenicsx-env/lib/python3.13/site-packages/gmsh.py", line 87, in <module>
    lib = CDLL(libpath)
  File "/home/zqaixj1234/miniconda3/envs/fenicsx-env/lib/python3.13/ctypes/__init__.py", line 390, in __init__
    self._handle = _dlopen(self._name, mode)
                   ~~~~~~~^^^^^^^^^^^^^^^^^^
OSError: libXft.so.2: cannot open shared object file: No such file or directory
ERROR conda.cli.main_run:execute(124): `conda run python /mnt/d/femcode/fem/Mesh/demo_gmsh.py` failed. (See above for error)

Your info is not completed. How did you install your dependencies? How did you run your code? It seems that you run with

conda run python /mnt/d/femcode/fem/Mesh/demo_gmsh.py

Try to run with

python /mnt/d/femcode/fem/Mesh/demo_gmsh.py

This problem is only gmsh-related. If problem is still unresolved, then you should consult to gmsh forum.

As stated by other users, this is a pure GMSH question.

I would google this error message:

and note that the appropriate conda package for GMSH is: python-gmsh: Python Gmsh | Anaconda.org

Thank you very much for your help, it is very helpful to me!

Yes, this is very inspiring to me, I am trying to solve the problem, thank you!