I'm trying to import antlr4 into a python3 code but I obtain the error:
$ python3 test.py
Traceback (most recent call last):
File "test.py", line 3, in <module>
import antlr4
ImportError: No module named 'antlr4'
I precise that antlr4 is already present in my computer:
$ antlr4
ANTLR Parser Generator Version 4.5.1
-o ___ specify output directory where all output is generated
-lib ___ specify location of grammars, tokens files
...
I tryed with 2 little tests too, test.py works:
#!/usr/bin/python3
import os, re, sys
print('test')
but this version doesn't:
#!/usr/bin/python3
import os, re, sys
import antlr4
print('test')
How can I connect this antlr4 module with python, please? Thanks in advance