Error in importing ipaddress module for python scripting

Hello every one,

I want to use  ipaddress module for python scripting,but when I import  ipaddress module and run it, got this error:


Traceback (most recent call last):
  File "/Applications/KNIME", line 286, in execute
    exec(source_code, _exec_env, _exec_env)
  File "<string>", line 5, in <module>
ImportError: No module named ipaddress


it is interesting that in python_IDLE , I can import ipaddress.I use python 3.6.3  

Thanks for your reply

Are you sure that KNIME is configured to use the same Python 3 executable that you are using in IDLE? Especially if you use any kind of Python environment manager (e.g. Anaconda etc).