Software Environment Setup - Bi-County-AlaCC-Activity-Based-Model/client_actc_ccta_model_doc GitHub Wiki
Home > TravelModel > UsersGuide > NetworkCoding > Software Environment Setup
Setting the python environment for the first time
Below are the step-by-step instructions on how to set up a python virtual environment dedicated for the project use.
- install conda to manage python environment
- in anaconda prompt, create environment using the commands below:
conda create python=3.7 rtree geopandas folium -n <environment_name> conda activate <environment_name> conda install -c conda-forge osmnx
- clone and install Network Wrangler bicounty branch from GitHub:
cd <your_working_folder> git clone https://github.com/network-wrangler/network_wrangler cd network_wrangler git checkout bicounty pip install -e .
- clone and install Lasso bicounty from GitHub:
cd <your_working_folder> git clone https://github.com/wsp-sag/Lasso cd Lasso git checkout bicounty pip install -e .
Test if the environment was set up successfully
- (Optional) Install Visual Studio Code (VSCode)
- Create a Jupyter Notebook and select the previously created environment
<environment_name>
as the kernal. - Run the code snippet below to validate that the environment was set up successfully.
import network_wrangler import lasso