Get the source code from http://www.antlr.org/download.html
(或 https://pypi.python.org/pypi/antlr4-python3-runtime/4.6 网址最后的参数4.6即版本号,可修改为对应的版本进行下载)$ sudo tar zxvf ~/Downloads/antlr4-python3-runtime-4.6.tar.gz -C /usr/local/lib/python3.4/dist-packages
$ cd /usr/local/lib/python3.4/dist-packages/antlr4-python3-runtime-4.6/
$ python3 setup.py install
Or, we can use another way to install it.
Directly install with: $ pip install antlr4-python3-runtime