@@ -4,45 +4,82 @@ Getting started
44
55.. highlight :: bash
66
7- Installation
8- ============
7+ ** COMPAS FAB ** can be easily installed on multiple platforms,
8+ using popular package managers such as conda or pip.
99
10- The recommended way to install **COMPAS FAB ** is to use `Anaconda/conda <https://docs.conda.io/ >`_:
10+ Install with conda
11+ ==================
12+
13+ The recommended way to install **COMPAS FAB ** is with `conda <https://conda.io/docs/ >`_.
14+ For example, create an environment named ``my-project `` and install COMPAS and COMPAS FAB.
1115
1216::
1317
14- conda install -c conda-forge compas_fab
18+ conda config --add channels conda-forge
19+ conda create -n my-project compas_fab
1520
21+ Afterwards, simply activate the environment
22+ and run the following command to check if the installation process was successful.
1623
17- But it can also be installed using `` pip ``:
24+ .. code-block :: bash
1825
19- ::
26+ conda activate my-project
27+ python -c " import compas_fab; print(compas_fab.__version__)"
28+
29+ .. code-block :: none
30+
31+ 0.17.0
32+
33+ You are ready to use **COMPAS FAB **!
34+
35+ Installation options
36+ --------------------
37+
38+ Install COMPAS FAB in an environment with a specific version of Python.
39+
40+ .. code-block :: bash
41+
42+ conda create -n my-project python=3.8 compas_fab
43+
44+ Install COMPAS FAB in an existing environment.
45+
46+ .. code-block :: bash
47+
48+ conda install -n my-project compas_fab
49+
50+ Install with pip
51+ ================
52+
53+ Install COMPAS FAB using ``pip `` from the Python Package Index.
54+
55+ .. code-block :: bash
2056
2157 pip install compas_fab
2258
59+ Install an editable version from local source.
2360
24- .. note ::
61+ .. code-block :: bash
2562
26- On Windows, you may need to install
27- ` Microsoft Visual C++ 14.0 < https://www.scivision.dev/python-windows-visual-c-14-required/ >`_ .
63+ cd path/to/compas_fab
64+ pip install -e .
2865
66+ Note that installation with ``pip `` is also possible within a ``conda `` environment.
2967
30- Once the installation is completed, you can verify your setup.
31- Start Python from the command prompt and run the following:
68+ .. code-block :: bash
3269
33- ::
70+ conda activate my-project
71+ pip install -e .
3472
35- >>> import compas_fab
73+ .. note ::
3674
37- You are ready to use **COMPAS FAB **!
75+ On Windows, you may need to install
76+ `Microsoft Visual C++ 14.0 <https://www.scivision.dev/python-windows-visual-c-14-required/ >`_.
3877
39- Update
40- ======
4178
4279Update with conda
43- -----------------
80+ =================
4481
45- To update COMPAS to the latest version with ``conda ``
82+ To update COMPAS FAB to the latest version with ``conda ``
4683
4784.. code-block :: bash
4885
@@ -52,13 +89,13 @@ To switch to a specific version
5289
5390.. code-block :: bash
5491
55- conda install compas_fab=0.15 .0
92+ conda install compas_fab=0.17 .0
5693
5794
5895 Update with pip
59- ---------------
96+ ===============
6097
61- If you installed COMPAS with ``pip `` the update command is the following
98+ If you installed COMPAS FAB with ``pip `` the update command is the following
6299
63100.. code-block :: bash
64101
@@ -68,7 +105,7 @@ Or to switch to a specific version
68105
69106.. code-block :: bash
70107
71- pip install compas_fab==0.15 .0
108+ pip install compas_fab==0.17 .0
72109
73110
74111 Working in Rhino
0 commit comments