I have this error when I execute the python program in ns3:
Traceback (most recent call last):
File "/home/alyaa/ns-allinone-3.40/ns-3.40/tes1.py", line 1, in <module>
import ns3
ModuleNotFoundError: No module named 'ns3'
Command 'python3 tes1.py' returned non-zero exit status 1.
Have you tried installing the module on your command line?
Type that into command prompt on Windows / Terminal on Mac