> For the complete documentation index, see [llms.txt](https://yarroudh.gitbook.io/segment-lidar/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yarroudh.gitbook.io/segment-lidar/installation.md).

# Installation

This guide describes the steps to install **segment-lidar** using [PyPI](https://pypi.org/project/segment-lidar/) or from source.

## Step 1: Create virtual environment

Before installing **segment-lidar**, you need to create an environment by running the following commands:

```bash
conda create -n samlidar python=3.9
conda activate samlidar
```

This command will create a new Conda environment named **samlidar**. We recommend using **Python 3.9**, but feel free to test with other versions.

Please note that using a Conda environment is not mandatory, but it is highly recommended. Alternatively, you can use [virtualenv](https://virtualenv.pypa.io/en/latest/).

## Step 2: Install segment-lidar

You can easily install **segment-lidar** from [PyPI](https://pypi.org/project/segment-lidar/) using the following command:

```bash
pip install segment-lidar
```

Or, you can install it from source:

```bash
git clone https://github.com/Yarroudh/segment-lidar
cd segment-lidar
python setup.py install
```

To make sure that **segment-lidar** is installed correctly, you can run the following command:

```bash
python -c "import segment_lidar; print(segment_lidar.__version__)"
```

If the installation is successful, you should see the version that you have installed.
