Antlr4-python3-runtime在ubuntu上的安装

  1. Get the source code from http://www.antlr.org/download.html
    (或 https://pypi.python.org/pypi/antlr4-python3-runtime/4.6 网址最后的参数4.6即版本号,可修改为对应的版本进行下载)

  2. $ sudo tar zxvf ~/Downloads/antlr4-python3-runtime-4.6.tar.gz -C /usr/local/lib/python3.4/dist-packages

  3. $ cd /usr/local/lib/python3.4/dist-packages/antlr4-python3-runtime-4.6/

  4. $ python3 setup.py install

Or, we can use another way to install it.
Directly install with: $ pip install antlr4-python3-runtime

你可能感兴趣的:(ANTLR,antlr4,python,python3,ubuntu)