You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

install.rst 1.6 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ========================
  2. Installation Guide
  3. ========================
  4. ``Learnware Market`` Installation
  5. =================================
  6. .. note::
  7. ``Learnware Market`` supports `Windows`, `Linux` and `Macos`. It's recommended to use ``Learnware Market`` in `Linux`. ``Learnware Market`` supports Python3, which is up to Python3.8.
  8. Users can easily install ``Learnware Market`` by pip according to the following command:
  9. - For Windows and Linux users:
  10. .. code-block:: bash
  11. pip install learnware
  12. - For macOS users:
  13. .. code-block:: bash
  14. conda install -c pytorch faiss
  15. pip install learnware
  16. Also, Users can install ``Learnware Market`` by the source code according to the following steps:
  17. - Enter the root directory of ``Learnware Market``, in which the file ``setup.py`` exists.
  18. - Then, please execute the following command to install the environment dependencies and install ``Learnware Market``:
  19. - For Windows and Linux users:
  20. .. code-block:: bash
  21. $ git clone https://git.nju.edu.cn/learnware/learnware-market.git && cd learnware-market
  22. $ python setup.py install
  23. - For macOS users:
  24. .. code-block:: bash
  25. $ conda install -c pytorch faiss
  26. $ git clone https://git.nju.edu.cn/learnware/learnware-market.git && cd learnware-market
  27. $ python setup.py install
  28. .. note::
  29. It's recommended to use anaconda/miniconda to setup the environment.
  30. Use the following code to make sure the installation successful:
  31. .. code-block:: python
  32. >>> import learnware
  33. >>> learnware.__version__
  34. <LATEST VERSION>