index.rst 845 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
Installation
===================

DI-treetensor is currently hosted on PyPI. It required python >= 3.6.

You can simply install DI-treetensor from PyPI with the following command:

.. code:: shell

    pip install di-treetensor

You can also install with the newest version through GitHub:

.. code:: shell

    pip install -U git+https://github.com/opendilab/DI-treetensor.git@main

After installation, run this python code, and version information \
of ``treetensor`` should be shown.

.. literalinclude:: install_check.demo.py
    :language: python
    :linenos:

.. literalinclude:: install_check.demo.py.txt
    :language: text
    :linenos:

DI-treetensor is still under development, you can also check out the documents in stable version through `https://opendilab.github.io/DI-treetensor/ <https://opendilab.github.io/DI-treetensor/>`_.