3. Installation¶
Note to Packagers: Please don’t create Pyterate package (PyPI do the job)
3.1. Dependencies¶
Pyterate requires the following dependencies to generate figures.
To generate Circuit_Macros figures:
pdflatex
mutool
tool from https://mupdf.com
To generate Tikz figures:
pdflatex
To convert SVG to PNG image.
convert
tool from https://imagemagick.org/index.php
3.2. On Windows¶
Firstly, you have to install the Anaconda Distribution so as to get a full featured Python 3 environment.
Then open the Anaconda Navigator and launch a console for your root environment.
You can now run pip to install Pyterate in your root environment using this command:
pip install Pyterate
3.3. On Linux¶
Firstly, you have to install Python 3 from your distribution.
Then you can install Pyterate using pip or from source. See supra.
3.4. On OSX¶
There are several ways to get Python on OSX:
use the built in Python
install Miniconda
install the Anaconda Distribution.
install from Brew brew install python3 (reported to work)
You can install Pyterate using pip or from source. See supra.
3.5. Installation from PyPi Repository¶
Pyterate is available on the Python Packages PyPI repository at https://pypi.python.org/pypi/Pyterate
Run this command in the console to install the latest release:
pip install Pyterate
3.6. Install a more recent version from Github¶
If you want to install a version which is not yet released on Pypi, you can use one of theses commands to install the stable or devel branch:
pip install git+https://github.com/FabriceSalvaire/Pyterate
pip install git+https://github.com/FabriceSalvaire/Pyterate@devel
3.7. Installation from Source¶
The Pyterate source code is hosted at https://github.com/FabriceSalvaire/Pyterate
You have to solution to get the source code, the first one is to clone the repository, but if you are not familiar with Git then you can simply download an archive either from the Pyterate Pypi page (at the bottom) or the GitHub page (see clone or download button).
To clone the Git repository, run this command in a console:
git clone https://github.com/FabriceSalvaire/Pyterate.git
Then to build and install Pyterate run these commands:
python setup.py build
python setup.py install