agenticSeek icon indicating copy to clipboard operation
agenticSeek copied to clipboard

PyTorch Installation Issue: torch>=2.4.1 Not Found for Python 3.11 on Intel Mac (macOS Sequoia)

Open Tarek-MyPeterinarian opened this issue 9 months ago • 1 comments

Hi agenticSeek Developers,

I'm trying to install agenticSeek locally and have run into a persistent issue with the PyTorch dependency.

My System Details:

Mac Hardware: MacBook Pro with Intel Core i9 (x86_64 architecture) macOS Version: macOS Sequoia 15.5 (24F74) Python Version: 3.11.12 (installed via Homebrew, used within a dedicated virtual environment) The Problem: The requirements.txt file specifies torch>=2.4.1. However, when attempting to install dependencies, pip is unable to find a pre-built PyTorch wheel for any version 2.3.0 or newer (including the required >=2.4.1) that is compatible with Python 3.11 (cp311) for the macosx_x86_64 (Intel) architecture.

This issue occurs when pip searches both the default PyPI index (https://pypi.org/simple/torch/) and the official PyTorch CPU wheel index (https://download.pytorch.org/whl/cpu/torch/).

For PyTorch versions 2.3.0 and newer (e.g., 2.4.1, 2.5.x, 2.7.0) combined with Python 3.11 on macOS, the available pre-built wheels on these indices appear to be exclusively for the arm64 (Apple Silicon) architecture. As a result, pip only finds compatible Intel Mac wheels up to torch==2.2.2 for Python 3.11, which does not satisfy the >=2.4.1 requirement in your requirements.txt.

Attempts Made: I have tried the following within a clean Python 3.11 virtual environment:

Using the generic pip install torch torchvision torchaudio command. Using pip install "torch>=2.4.1" torchvision torchaudio. Using pip install "torch>=2.4.1" torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu. Clearing pip cache (python -m pip cache purge) and upgrading pip/setuptools/wheel. Verbose pip output (-vvv) confirms that pip considers only torch versions up to 2.2.2 as compatible candidates for my x86_64 Python 3.11 setup from both PyPI and the PyTorch CPU index. Request for Guidance: Could you please provide some assistance or clarification on the following?

Are there specific PyTorch installation instructions or recommended wheel URLs for Intel Mac users running Python 3.11 to meet the torch>=2.4.1 requirement? Is the torch>=2.4.1 requirement strictly necessary for all core functionalities of agenticSeek, or might an older, available version like torch==2.2.2 (which I can install on my setup) work, perhaps with some limitations? Are you aware of this apparent lack of recent (>=2.3.0) pre-built PyTorch wheels for Python 3.11 on Intel Macs? Any advice or alternative approaches would be greatly appreciated. I'm keen to get agenticSeek running on my machine.

Thank you for your time and help!

Tarek-MyPeterinarian avatar May 28 '25 23:05 Tarek-MyPeterinarian

Hey @Tarek-MyPeterinarian To resolve the compatibility issue of the Pytorch and ensure agenticseek installs completely I will recommend you to please install Python 3.10 (since it's the supported version of this project and create a Virtual environment using Python 3.10.

Image

curious-companion avatar May 29 '25 08:05 curious-companion

You need to use python3.10

Fosowl avatar May 31 '25 19:05 Fosowl

I have used python 3.10.13 but still reported an error: (agentic_seek_env) wanghaodong@localhost agenticSeek % python --version Python 3.10.13

ERROR: Ignored the following versions that require a different python version: 2.3.0rc1 Requires-Python >=3.11 ERROR: Could not find a version that satisfies the requirement torch>=2.4.1 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2) ERROR: No matching distribution found for torch>=2.4.1

LaomoHans avatar Jun 04 '25 09:06 LaomoHans