============ Installation ============ We recommend the conda_ package manager and the Anaconda_, Miniconda_, or Miniforge_ distributions for easy cross platform installation. .. _conda: http://conda.pydata.org/ .. _Anaconda: http://docs.continuum.io/anaconda/ .. _Miniconda: https://docs.conda.io/en/latest/miniconda.html .. _Miniforge: https://conda-forge.org/miniforge/ Once conda is installed type:: $ conda install -c conda-forge pydy Also, a simple way to install all of the optional dependencies is to install the ``pydy-optional`` metapackage using conda:: $ conda install -c conda-forge pydy-optional Note that ``pydy-optional`` currently enforces the use of Jupyter 4.0, so you may not want to install into your root environment. Create a new environment for working with PyDy examples that use the embedded Jupyter visualizations:: $ conda create -n pydy -c conda-forge pydy-optional $ conda activate pydy (pydy)$ python -c "import pydy; print(pydy.__version__)" Other installation options -------------------------- If you have the pip package manager installed you can type:: $ pip install pydy Installing from source is also supported. The latest stable version of the package can be downloaded from PyPi\ [#]_:: $ wget https://pypi.python.org/packages/source/p/pydy/pydy-X.X.X.tar.gz .. [#] Change ``X.X.X`` to the latest version number. and extracted and installed:: $ tar -zxvf pydy-X.X.X.tar.gz $ cd pydy-X.X.X $ python -m pip install . Dependencies ------------ PyDy has hard dependencies on the following software\ [#]_: .. [#] We only test PyDy with these minimum dependencies; these module versions are provided in the Ubuntu 24.04 packages. Previous versions may work. - Python >= 3.10 - setuptools >= 68.1.2 - packaging >= 24.0 - NumPy_ >= 1.26.4 - SciPy_ >= 1.11.4 - SymPy_ >= 1.12 - PyWin32 >= 306 (Windows Only) PyDy has optional dependencies for extended code generation on: - Cython_ >= 0.29.37 - Theano_ >= 1.0.5 - Symjit_ >= 2.5.0 and animated visualizations with ``Scene.display_jupyter()`` on: - `Jupyter Notebook`_ >= 6.4.12 or `Jupyter Lab` >= 1.0.0 - ipywidgets_ >= 8.1.1 - pythreejs_ >= 2.1.1 or interactive animated visualizations with ``Scene.display_ipython()`` on: - 4.0.0 <= `Jupyter Notebook`_ < 5.0.0 - 4.0.0 <= ipywidgets_ < 5.0.0 .. _Cython: http://cython.org/ .. _Theano: http://deeplearning.net/software/theano/ .. _Symjit: https://github.com/siravan/symjit .. _Jupyter Notebook: https://jupyter-notebook.readthedocs.io .. _Jupyter Lab: https://jupyterlab.readthedocs.io The examples may require these dependencies: - matplotlib_ >= 3.6.3 - version_information_ .. _version_information: https://pypi.python.org/pypi/version_information