potiuk commented on code in PR #50174: URL: https://github.com/apache/airflow/pull/50174#discussion_r2072629912
########## README.md: ########## @@ -188,6 +188,69 @@ pip install 'apache-airflow[postgres,google]==3.0.0' \ For information on installing provider distributions, check [providers](http://airflow.apache.org/docs/apache-airflow-providers/index.html). +3. Setting up Apache Airflow on Mac M1 or above (Apple Silicon) users + +- **Create and Activate a Virtual Environment**: Since Apache Airflow requires multiple dependencies, it's a good practice to isolate these dependencies in a virtual environment. + +- Create a virtual environment: + +```bash +python3 -m venv airflow_venv +``` + +- Activate the virtual environment: + +```bash +source airflow_venv/bin/activate +``` + +- **Install Python 3.9 or later**:Airflow requires Python 3.9 or higher, which is supported on M1 Macs or above. You can check your Python version with: + +```bash +python3 --version +``` + +- If Python is not installed or you need to install a different version, I recommend using Homebrew to manage Python installations. + +```bash +brew install [email protected] Review Comment: Well. HomeBrew is known to have big problems with Python installations that you want to build your own dependencies - similarly as OS/distros, homebrew managed Python is "--externally-managed" and even latest version of `pip` will refuse to install anything in those installations without specifying `--break-system-packages` flag. So we should recommend another way of installing Python. I'd definitely not recommend installing Python via brew. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
