Skip to content

Macos install with Python 3.14 - #1

Open
Edouard2laire wants to merge 2 commits into
multifunkim:mainfrom
Edouard2laire:macos-install
Open

Macos install with Python 3.14#1
Edouard2laire wants to merge 2 commits into
multifunkim:mainfrom
Edouard2laire:macos-install

Conversation

@Edouard2laire

@Edouard2laire Edouard2laire commented Aug 7, 2026

Copy link
Copy Markdown

Hello,

Thanks for creating this tool;

It seems that the installation script is having an issue when using Python 3.14 on Mac, which is the default version used on my system. This PR specifies the version so the virtual environment is using Python 3.11 :

You might need to check before hand that python 3.11 is installed; but i am not sure how. Here is what claude suggested :

PYTHON_BIN="python3.11"
if ! command -v "${PYTHON_BIN}" &> /dev/null; then
    echo "Error: ${PYTHON_BIN} not found. Install it with: brew install python@3.11" >&2
    exit 1
fi
"${PYTHON_BIN}" -m venv "${VENV_DIR}"

Here is the error i had before the change:

 [edelaire1@home-imglab01:~/Documents/software/network-analysis/SPARK]$ ./install_spark.sh 
SPARK directory : /Users/edelaire1/Documents/software/network-analysis/SPARK
Environment     : /Users/edelaire1/Documents/software/network-analysis/SPARK/.venv
Installation mode: user
Existing virtual environment found.
Requirement already satisfied: pip in ./.venv/lib/python3.14/site-packages (26.2.1)
Requirement already satisfied: setuptools in ./.venv/lib/python3.14/site-packages (83.0.0)
Requirement already satisfied: wheel in ./.venv/lib/python3.14/site-packages (0.47.0)
Requirement already satisfied: packaging>=24.0 in ./.venv/lib/python3.14/site-packages (from wheel) (26.3)
Installing runtime dependencies...
Requirement already satisfied: scipy==1.16.1 in ./.venv/lib/python3.14/site-packages (1.16.1)
Requirement already satisfied: numpy==2.5.1 in ./.venv/lib/python3.14/site-packages (2.5.1)
Collecting numpy<2.4.1,>=1.26 (from -r /Users/edelaire1/Documents/software/network-analysis/SPARK/requirements.txt (line 1))
  Using cached numpy-2.3.5-cp314-cp314-macosx_14_0_arm64.whl.metadata (62 kB)
Requirement already satisfied: scipy in ./.venv/lib/python3.14/site-packages (from -r /Users/edelaire1/Documents/software/network-analysis/SPARK/requirements.txt (line 2)) (1.16.1)
Collecting scikit-learn<1.5,>=1.4 (from -r /Users/edelaire1/Documents/software/network-analysis/SPARK/requirements.txt (line 3))
  Using cached scikit-learn-1.4.2.tar.gz (7.8 MB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × installing build dependencies for scikit-learn did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      Collecting setuptools
        Using cached setuptools-83.0.0-py3-none-any.whl.metadata (6.6 kB)
      Collecting wheel
        Using cached wheel-0.47.0-py3-none-any.whl.metadata (2.3 kB)
      Collecting Cython>=3.0.8
        Using cached cython-3.2.9-cp314-cp314-macosx_11_0_arm64.whl.metadata (4.6 kB)
      ERROR: Ignored the following yanked versions: 2.4.0
      ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11; 1.26.0 Requires-Python >=3.9,<3.13; 1.26.1 Requires-Python >=3.9,<3.13
      ERROR: Could not find a version that satisfies the requirement numpy==2.0.0rc1 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0, 1.21.1, 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.23.0, 1.23.1, 1.23.2, 1.23.3, 1.23.4, 1.23.5, 1.24.0, 1.24.1, 1.24.2, 1.24.3, 1.24.4, 1.25.0, 1.25.1, 1.25.2, 1.26.2, 1.26.3, 1.26.4, 2.0.0, 2.0.1, 2.0.2, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.2.6, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.4.0rc1, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.5.0rc1, 2.5.0, 2.5.1)
      ERROR: No matching distribution found for numpy==2.0.0rc1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'scikit-learn' when installing build dependencies for scikit-learn

@Edouard2laire Edouard2laire changed the title Macos install Macos install with Python 3.14 Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant