meshpro / dmsh

:spider_web: Simple mesh generator inspired by distmesh.
GNU General Public License v3.0
210 stars 25 forks source link

Anaconda - dmsh installation problem #93

Closed griff10000 closed 1 year ago

griff10000 commented 2 years ago

I have a new machine with Windows 11 and have installed Anaconda3-2021.11-Windows-x86_64.

Tried running in powershell window: conda install dmsh Not found.

Tried: pip install dmsh This installed dmsh.

But get following error when running a simple dmsh application that ran on my old Windows 10 machine:

ImportError: cannot import name 'NDArray' from 'numpy.typing' (C:\Users\Graham\anaconda3\lib\site-packages\numpy\typing\__init__.py)

The installed numpy version = 1.20.3

matael commented 2 years ago

I second that, some of my students had the issue during a practical and I ended up generating the mesh on my machine and sending them the arrays.

Windows 10, anaconda and numpy 1.20.X

griff10000 commented 2 years ago

From memory ... After, pip install dmsh To get the new dmesh to work on Windows 11 and anaconda, I had to remove my existing numpy version and then re-install version 1.22.2 Hope this works.