We will install the latest version of Anaconda here.
Click here to download installation files for your operating system. If you have already installed anaconda or miniconda on your system, then you can skip this part.
Windows: You will need to run Anaconda Prompt(Anaconda 3) from the start menu.
OSX or Linux: You will need to open a terminal.
You will first need to check what virtual environments are already available on your system. When you run the below command in the terminal, make it sure you have * symbol right next to the base environment.
$ conda info --envsYou need to create a new virtual environment for this tutorial using the below command. We will use Python=3.6 version in this tutorial.
$ conda create --name lidar python=3.8After you create the new virtual environment, we need to activate the new environment using the below command.
For Windows
$ conda activate lidarFor OSX and Linux
$ source ~/.bashrc
$ conda activate lidarYou need to check if the new environment is activated correctly using the below command. You should see * symbol right next to the lidar environment.
$ conda info --envsOnce the new environment is activated, you need to install below packages in the new environment that are required for this tutorial.
$ conda install jupyter
$ conda install numpy matplotlib
$ conda install ipython
$ conda install gdal
$ conda install progressbar2
$ conda install -c conda-forge laspy
$ conda install -c conda-forge lastools
$ conda install pipNOTE: The above commands will install laspy 2.0 version, and we will have to install additional packages to enable laz support.
$ pip install lazrsIf the above command does not work, then you can do below as an alternative.
$ pip install laszipAfter installing the above packages, you need to confirm the installation by running the below commands.
$ conda activate lidar
$ ipython>>> import numpy
>>> import matplotlib
>>> import laspy
>>> from osgeo import gdalNow we need to make the lidar virtual environment available from the jupyter notebook. Type below command in the command line.
ipython kernel install --user --name=lidar
You will also need to check jupyter notebook installation by running the below command.
$ cd [YOUR GIT Clone Directory]
$ jupyter notebookOpen PowerShell and paste below command.
$Path = $env:TEMP; $Installer = “chrome_installer.exe”; Invoke-WebRequest “http://dl.google.com/chrome/chrome_installer.exe" -OutFile $Path\$Installer; Start-Process -FilePath $Path\$Installer -Args “/silent /install” -Verb RunAs -Wait; Remove-Item $Path\$Installer