Lcapy installation for Linux (Ubuntu and variants)

  • You need to install the SymPy package:

    >>> sudo apt-get install python-sympy
  • For plotting you need the Matplotlib and NumPy packages:

    >>> sudo apt-get install python-numpy python-matplotlib
  • For schematic drawing you need pdflatex, the circuitikz package, imagemagick, and ghostscript.

    >>> sudo apt-get install texlive-latex-base texlive-pictures imagemagick ghostscript
  • For nice rendering of maths you need mathjax. This is not essential, if it is not loaded then an active internet connection is required.

    >>> sudo-apt-get install libjs-mathjax fonts-mathjax
  • The easiest way to obtain the Lcapy sources is to use git:

    >>> git clone
  • Lcapy can be installed using:

    >>> cd lcapy
    >>> sudo python install
  • If you do not have root access, you can set the environment variable PYTHONPATH to find the source files for Lcapy.

  • While you are at it, it is worthwhile to install ipython, the interactive python shell (this is also useful for displaying notebooks in a web browser)

    >>> sudo apt-get install ipython