# 1.2 Python environment setup - The path of .py file is: Z:\data\purdue\sensor_data\2021\UAV\support_files\Hyperspectral\LiDAR_feature_extraction. - Please install Visual Studio before building the environment. Visual Studio 2015 and 2017 are both tested and work fine. - To download Visual Studio, visit here: https://visualstudio.microsoft.com/vs/features/python/ ## Easy-install If you are not familliar with python, you can use the yml file we provide to set up an environment 1. Download and install Anaconda as described in https://docs.anaconda.com/anaconda/install 2. Create virtual environment ```python= conda env create -f LiDAR_Feature_Extraction.yml ``` more details can be found in https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html 3. Find the location of the environment by using this command: ```python= conda info --env ``` You will find the path of the environment. ![](https://i.imgur.com/aiGevqR.png) Find the "Lib" folder under your environment: ![](https://i.imgur.com/FdDBgEi.png) 4. Install CSF by following the instruction: - Go to Z:\data\purdue\sensor_data\2021\UAV\support_files\Hyperspectral\LiDAR_feature_extraction, copy "CSF-master.zip" to the Lib folder you just find. - Extract the zip file - Go to the python folder inside the CSF-master ![](https://i.imgur.com/XBDyjqQ.png) - Type in "CMD" and press "enter". Then you will see a command line window popping up. ![](https://i.imgur.com/wluwOYH.png) ![](https://i.imgur.com/9UAgp4e.png) - Run these two commands (one by one) in CMD: ```python= python setup.py build python setup.py install ``` ## build the environment by yourself This code requires the modules listed below: - numpy - pandas - matplotlib - scipy - laspy - CSF (**Don't use pip to install this, check https://github.com/jianboqi/CSF**)