'Can't install Postgres on MacBook M1, Mac OS Monterey 12.4

I have problems installing Postgres on my MacBook M1

The Downloaded Installer is failing (Error in Postprocessing) from www.enterprisedb.com and when I try it with "Port" it is not working (it installs, but doesn't install executables like "pg_ctl")

Is there a solution?

(10 years ago I´ve downloaded the source and compiled it)



Solution 1:[1]

Nowadays I would suggest same like Calin's comment:

Install using Homebrew

brew install postgresql

As you can see on brew.sh when searching for formula postgresql it has binaries (Bottle) supporting:

  • Apple Silicon (M1) on macOS Monterey

Apple Silicon (M1) is supported

See also:

Solution 2:[2]

Mode is not a predefined function, however you can apply a custom function using rolling(5).apply(custom_function). For your case that could be

dataset['Reported_Value'].rolling(5).apply(lamba s: s.mode())

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 hc_dev
Solution 2 Simon Hawe