install-geoai

Solid

Verify that the geoai Python package is installed and functional. If not, provide installation instructions. Optionally check extra dependencies for deep learning models.

AI & Automation 24 stars 3 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
47
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
99
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

Arguments: `$@` ## Step 1 -- Check if geoai is importable ```bash python3 -c "import geoai; print(f'geoai v{geoai.__version__}')" ``` - **Success** -> report the version and continue to Step 2 if `--check` or `--extras` was passed, otherwise stop. - **ImportError** -> go to Step 3. ## Step 2 -- Check optional dependencies If `--check` is present in `$@`, run a comprehensive dependency check: ```bash python3 -c " deps = [ 'geoai', 'geopandas', 'rasterio', 'rioxarray', 'shapely', 'leafmap', 'numpy', 'pandas', 'matplotlib', ] for dep in deps: try: mod = __import__(dep) ver = getattr(mod, '__version__', 'unknown') print(f'{dep}: {ver}') except ImportError: print(f'{dep}: NOT INSTALLED') " ``` If `--extras` is present in `$@`, also check deep learning dependencies: ```bash python3 -c " import sys dl_deps = ['torch', 'torchvision', 'transformers', 'timm', 'segmentation_models_pytorch'] for dep in dl_deps: try: mod = __import__(dep) ver = getattr(mod, '__version__', 'unknown') print(f'{dep}: {ver}') except ImportError: print(f'{dep}: NOT INSTALLED') try: import torch if torch.cuda.is_available(): print(f'CUDA: {torch.version.cuda} (device: {torch.cuda.get_device_name(0)})') else: print('CUDA: not available (CPU only)') except ImportError: print('CUDA: torch not installed') " ``` Report the results and note any missing packages. ## Step 3 -- Installation ...

Details

Author
opengeos
Repository
opengeos/geoai-skills
Created
4 months ago
Last Updated
6 days ago
Language
N/A
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category