Mac OS doesn't like Streamlit?

Problem:

Struggling to install Streamlit on Mac OS (which I am new to).

Steps followed:

  1. Python 2.7 came pre-installed. I manually installed 3.10
  2. Followed installation steps as per Installation - Streamlit Docs

Debug info

  • Streamlit version: (1.25.0)
  • Python version: (3.10)
  • OS version: Mac OS High Sierra 10.13.6
  • Browser version: Brave Version 1.56.11 Chromium: 115.0.5790.102 (Official Build) (x86_64)

Error information

Streamlit installation seems to be running fine until it encounters pyarrow. The error message onwards is below:

creating /private/var/folders/xl/0xfvcg4x1937b70b57cg6_500000gn/T/pip-install-guosfpqj/pyarrow_644d6d6c95014ba5ba09ac31fe6b7d07/build/temp.macosx-10.9-universal2-cpython-310
      -- Running cmake for PyArrow
      cmake -DCMAKE_INSTALL_PREFIX=/private/var/folders/xl/0xfvcg4x1937b70b57cg6_500000gn/T/pip-install-guosfpqj/pyarrow_644d6d6c95014ba5ba09ac31fe6b7d07/build/lib.macosx-10.9-universal2-cpython-310/pyarrow -DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -DPython3_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -DPYARROW_CXXFLAGS= -DPYARROW_BUILD_CUDA=off -DPYARROW_BUILD_SUBSTRAIT=off -DPYARROW_BUILD_FLIGHT=off -DPYARROW_BUILD_GANDIVA=off -DPYARROW_BUILD_ACERO=off -DPYARROW_BUILD_DATASET=off -DPYARROW_BUILD_ORC=off -DPYARROW_BUILD_PARQUET=off -DPYARROW_BUILD_PARQUET_ENCRYPTION=off -DPYARROW_BUILD_GCS=off -DPYARROW_BUILD_S3=off -DPYARROW_BUILD_HDFS=off -DPYARROW_BUNDLE_ARROW_CPP=off -DPYARROW_BUNDLE_CYTHON_CPP=off -DPYARROW_GENERATE_COVERAGE=off -DCMAKE_BUILD_TYPE=release /private/var/folders/xl/0xfvcg4x1937b70b57cg6_500000gn/T/pip-install-guosfpqj/pyarrow_644d6d6c95014ba5ba09ac31fe6b7d07
      error: command 'cmake' failed: No such file or directory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyarrow
Failed to build pyarrow
ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects

Thanks in advance.

Cheers

Hi there @Shawn_Pereira ,

Looking at the error message it seems cmake is not found. Try installing Homebrew (a popular package manager for macOS), if you don’t have it already, and then :

brew install cmake

If this doesn’t work, try using conda to create a specific environment (not the base environment), install the Python runtime + libraries you wish to use. Hope this helps!

1 Like

Thanks @marduk for the prompt response. Apparently, homebrew is not available for the OS version I am using. Since, I have already pulled out enough hair using this Macbook, I think I will just partition the disk and install windows on Mac :slight_smile:

Cheers

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.