2. Introduction to Python Package Management#

2.1. Introduction#

2.2. Learning Objectives#

2.3. Installing Conda (Miniconda)#

2.3.1. Why Miniconda?#

2.3.2. Installation#

2.3.2.1. Windows#

2.3.2.2. macOS#

2.3.2.3. Linux#

2.3.3. Verifying Installation#

2.4. Understanding Conda Concepts#

2.4.1. Environments#

2.4.2. Channels#

2.5. Creating Your First Geospatial Environment#

2.6. Troubleshooting Conda#

2.7. Essential Conda Commands#

2.7.1. Creating and Managing Environments#

2.7.2. Installing and Managing Packages#

2.7.3. Using Mamba (Faster Package Management)#

2.7.4. Environment Files for Reproducibility#

2.8. Introducing uv: The Fast Alternative#

2.8.1. Installing uv#

2.8.2. Basic uv Usage#

2.8.3. uv vs pip Performance#

2.9. Best Practices for Package Management#

2.9.1. Environment Management#

2.9.2. Package Installation#

2.9.3. Collaboration and Reproducibility#

2.9.4. Troubleshooting Tips#

2.10. Key Takeaways#

2.11. Exercises#

2.11.1. Exercise 1: Setting Up Your First Geospatial Environment#

2.11.2. Exercise 2: Environment Management and Reproducibility#

2.11.3. Exercise 3: Exploring uv for Fast Development#