# \`pip install ogs\` fails on arm-based MacOS for v6.5.7 and v6.5.8

**URL:** <https://discourse.opengeosys.org/t/pip-install-ogs-fails-on-arm-based-macos-for-v6-5-7-and-v6-5-8/2037>\
**Category:** Help & Support\
**Tags:** ogs6\
**Created:** [August 18, 2026, 3:04pm UTC](https://discourse.opengeosys.org/t/pip-install-ogs-fails-on-arm-based-macos-for-v6-5-7-and-v6-5-8/2037 "2026-08-18T15:04:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thealanjason](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/thealanjason/32/1488_2.png) [@thealanjason](https://discourse.opengeosys.org/u/thealanjason)\
**Post date:** [August 18, 2026, 3:04pm UTC](https://discourse.opengeosys.org/t/pip-install-ogs-fails-on-arm-based-macos-for-v6-5-7-and-v6-5-8/2037/1 "2026-08-18T15:04:21Z")

</div>

We cannot install OGS using pip install ogs on arm-based MacOS computers.

The error is due to an unset `CPM_SOURCE_CACHE` variable.

Please see the error message below:

```auto
CMake Error at scripts/cmake/Dependencies.cmake:196 (message): 

CPM_SOURCE_CACHE not set but is required when patched third-party libraries are use, see

Call Stack (most recent call first):
CMakeLists.txt:102 (include)

  -- Configuring incomplete, errors occurred!

  *** CMake configuration failed
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ogs

```

---

<div class="post-metadata">

**Author:** ![chleh](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/chleh/32/854_2.png) [@chleh](https://discourse.opengeosys.org/u/chleh)\
**Post date:** [August 20, 2026, 6:53am UTC](https://discourse.opengeosys.org/t/pip-install-ogs-fails-on-arm-based-macos-for-v6-5-7-and-v6-5-8/2037/2 "2026-08-20T06:53:01Z")

</div>

Hi,

it’s strange that `pip install` tries to build the OGS Python wheel. AFAICS there are prebuilt ARM Mac binary wheels available:

> **[Client Challenge](https://pypi.org/project/ogs/#files)**

Which Python version do you use? Which version of MacOS do you have? Which processor? M3? M…?

Do things work if you set CPM\_SOURCE\_CACHE? (`CPM_SOURCE_CACHE=/SOME/NEW/DIR pip install ogs`). Note: The OGS build will put a lot of data into `CPM_SOURCE_CACHE`.

---

<div class="post-metadata">

**Author:** ![thealanjason](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/thealanjason/32/1488_2.png) [@thealanjason](https://discourse.opengeosys.org/u/thealanjason)\
**Post date:** [August 24, 2026, 2:40pm UTC](https://discourse.opengeosys.org/t/pip-install-ogs-fails-on-arm-based-macos-for-v6-5-7-and-v6-5-8/2037/3 "2026-08-24T14:40:19Z")

</div>

Here are the details:

Python version: 3.12.13  
MacOS: 14.6.1  
Processor: M1

We are trying to install by setting the CPM\_SOURCE\_CACHE. We will report back.

---

<div class="post-metadata">

**Author:** ![ethandavis](https://discourse.opengeosys.org/letter_avatar_proxy/v4/letter/e/8491ac/32.png) [@ethandavis](https://discourse.opengeosys.org/u/ethandavis)\
**Post date:** [November 12, 2026, 1:05pm UTC](https://discourse.opengeosys.org/t/pip-install-ogs-fails-on-arm-based-macos-for-v6-5-7-and-v6-5-8/2037/4 "2026-11-12T13:05:46Z")

</div>

Setting CPM\_SOURCE\_CACHE should get past that CMake error, but pip will still be compiling OGS and its dependencies from source, so expect a long build and possibly more macOS-specific failures. It’s worth confirming whether a prebuilt arm64 wheel exists for Python 3.12 and ogs 6.5.8: `pip install --only-binary=:all: ogs==6.5.8`. If pip says no matching distribution, using a Python version that has a wheel for that release would avoid the source build entirely.
