https://github.com/suizer98/arcpy3-wsl2
A demo to mount ArcPy3 python to wsl2
https://github.com/suizer98/arcpy3-wsl2
arcgis-pro arcpy docker windows wsl2
Last synced: about 2 months ago
JSON representation
A demo to mount ArcPy3 python to wsl2
- Host: GitHub
- URL: https://github.com/suizer98/arcpy3-wsl2
- Owner: Suizer98
- Created: 2025-09-10T05:52:39.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-10T09:48:55.000Z (9 months ago)
- Last Synced: 2025-09-10T11:16:06.543Z (9 months ago)
- Topics: arcgis-pro, arcpy, docker, windows, wsl2
- Language: Python
- Homepage:
- Size: 43.2 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Arcpy3 WSL2

## Overview
This project provides a seamless way to use ArcGIS Pro's Python (arcpy) from within WSL2 (Windows Subsystem for Linux). It allows you to:
1. Access Windows ArcGIS Pro's arcpy functionality from WSL2
2. Run automated tests to verify arcpy functionality
3. Work with sample data and geodatabases in a Linux environment
## Quick Start
### Prerequisites
- Windows 10/11 with WSL2 enabled
- ArcGIS Pro installed on Windows
### Running Tests
#### Basic ArcPy Test
```bash
"/mnt/c/Program Files/ArcGIS/Pro/bin/Python/envs/arcgispro-py3/python.exe" -m pytest tests/test.py 2>/dev/null
```
#### Test with verbose output
```bash
"/mnt/c/Program Files/ArcGIS/Pro/bin/Python/envs/arcgispro-py3/python.exe" -m pytest tests/test.py -v -s 2>/dev/null
```
#### Using ArcPy from WSL2
```bash
"/mnt/c/Program Files/ArcGIS/Pro/bin/Python/envs/arcgispro-py3/python.exe" xxx.py
```
#### Test with Docker (Experimental)
```bash
docker-compose up --build
```
## Version Compatibility
- **ArcGIS Pro**: 3.1.2+ (tested with 3.1.2)
- **Python**: 3.9.16 (ArcGIS Pro default)
- **WSL2**: Ubuntu 24.04 LTS
- **Docker**: Any recent version