Install Chrono::PyEngine

There are two options for installing Chrono::PyEngine on your computer, A) or B). The first is for users that are not interested in the C++ API.

A) Install precompiled Python modules

For users that do not want to install the entire Chrono::Engine API there is a precompiled installer. Do this:

  1. download and install Python (only Python version 3.2 or greater is supported). Or, if you have hard disk space, better install a full stack like Anaconda
  2. download and install the Chrono::PyEngine module for Python, using the installer in our download section.
You do not need to install the entire C++ API/SDK of Chrono, in this case.
Note that there are separate installers for the 32 bit or 64 bit distributions of Python. Do not mix 32bit with 64bit. We suggest you to use the 64 bit Python and, consequently, the 64 bit Chrono::PyEngine
Note that the releases of the installers in our download page might be lagging behind the most recent Chrono API: if you want to exploit the most recent features, you should use the following second method.

B) Build Python modules from the C++ API

Advanced users that use the entire Chrono::Engine C++ API can build Chrono::PyEngine from scratch. This is the preferred way to have the most updated Chrono::PyEngine, but it is more complicated. Do this:

  1. install the Chrono API with C++ source code and build it,
  2. install Python (only Python version 3.2 or greater is supported). Or, if you have hard disk space, better install a full stack like Anaconda
  3. build the Chrono::PyEngine module, following these instructions

Tips

Hint: instead than installing the basic Python interpreter, you can install a pre-configured Python distribution that contains Python plus many useful packages, editors and tools. Our suggestion is to downloadand and install Anaconda, a very powerful stack that aims at scientific computing. Another popular Python distribution is Enthough that already includes the two packages.
We suggest you to use a specialized IDE editor that nicely handles the Python language (syntax highlighting, auto completion of text, etc.). The default IDE installed with most Python distribution is IDLE: it is suficient only for simple stuff, so we suggest to use a more powerful editor. Our best pick is ***Spyder***, the IDE that comes together with the Anaconda Python distribution. Other free options could be PyScripter, or Visual Studio Code.
Either you install Chrono::PyEngine via method A) or B), do not forget to set the PYTHONPATH environment variable.