You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/guides/installation.rst
+30-8Lines changed: 30 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,34 +4,56 @@ Installation
4
4
Requirements
5
5
------------
6
6
7
-
Cheese3D is a Python package with a few external dependencies. Our environment is managed by `Pixi <https://pixi.sh/latest/>`__. Install Pixi using (on macOS or Windows):
7
+
Cheese3D is a Python package with a few external dependencies. Our environment is managed by `Pixi <https://pixi.sh/latest/>`__. Install Pixi using (on Linux or macOS):
8
8
9
9
.. code-block:: bash
10
10
11
11
curl -fsSL https://pixi.sh/install.sh | sh
12
12
13
+
Pixi is like Anaconda (i.e., ``conda``) but faster and more robust.
14
+
13
15
Setup
14
16
-----
15
17
16
-
.. warning::
17
-
18
-
We are currently upstreaming changes in order to publish Cheese3D on PyPi. Until then, follow the instructions below to install Cheese3D directly from Github.
18
+
Cheese3D is published on PyPi. We ship a minimal Pixi environment (``pixi.toml`` + ``pixi.lock``) that pins ``cheese3d``, ``cheese3d-annotator``, and the native dependencies (ffmpeg, CUDA, etc.) they need. You don't need to clone the repository, just download the two manifest files.
19
19
20
-
Clone the Cheese3D repository:
20
+
Create a directory for the environment and fetch the manifest files:
Now, you should have a folder called ``cheese3d`` with two files inside it: ``pixi.toml`` and ``pixi.lock``.
25
29
26
-
Setup the environment then activate it. Any future commands require activating the environment first.
30
+
Activate the environment. Pixi will install everything on first use. Any future commands require activating the environment first.
27
31
28
32
.. code-block:: bash
29
33
30
-
cd cheese3d
31
34
pixi shell
32
35
33
36
Installation should take a few minutes for each step to complete. If any step is taking too long, please open an issue (https://github.com/Hou-Lab-CSHL/cheese3d/issues).
34
37
38
+
.. note::
39
+
40
+
These instructions are for **using** Cheese3D. If you want to edit the source code for Cheese3D, see the `CONTRIBUTING guide <https://github.com/Hou-Lab-CSHL/cheese3d/blob/main/CONTRIBUTING.md>`__ for details.
41
+
42
+
Manual environment
43
+
^^^^^^^^^^^^^^^^^^
44
+
45
+
Pixi installs everything into a ``.pixi/`` directory inside the ``cheese3d`` folder you just created. If you'd rather have a global environment or manage dependencies yourself (e.g., with ``conda``, ``mamba``, ``venv``, or system package managers), here is what Cheese3D needs:
46
+
47
+
- **Python** 3.10
48
+
- **ffmpeg** >= 5.1.2
49
+
- **NumPy** < 2.0
50
+
- **CUDA** 11.7 and **cuDNN** 8 (Linux only, for GPU acceleration). Make sure these libraries are discoverable on ``LD_LIBRARY_PATH``; Pixi handles this automatically.
0 commit comments