'command not found: netconvert in macOS

I'm working with sumo. I want to use netconvert command in macOS terminal to create a .net.xml file from edge and node files. to do so, I wrote the following:

netconvert --node-files=sumotest.nod.xml --edge-files=sumotest.edge.xml -o sumotest.net.xml

However after running this it shows me zsh: command not found: netconvert. It used to work but now seems something went wrong and it doesn't work. I also ran echo $PATH and it shows me the following:

/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin

I appreciate if anyone can suggest me a solution for solving the problem. Also is it needed to call this command in a specific directory?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source