How to Solve NameError: name 'ifaddresses' is not defined -- netifaces

Solution: Import the 'ifaddresses' module

To Solve the error, add the following line to the top of your code.

from netifaces import ifaddresses

 

For more information:
Python netifaces ifaddresses