[BUG] Python version (3.13.1) is not supported by scipy==1.9.3, which only supports Python 3.8 to 3.11. Since swarms depends on scipy, this causes the pip install swarms command to fail. #697
Labels
bug
Something isn't working
Bug Report:
pip install swarms
Fails Due toscipy
Compatibility IssueDescription
When attempting to install the
swarms
package viapip
, the installation fails during the preparation ofscipy
metadata. The error occurs becausescipy==1.9.3
only supports Python versions 3.8 to 3.11, while the system uses Python 3.13.1.Error Logs
Steps to Reproduce
Use Python 3.13.1 (or any unsupported version above 3.11).
Run the command:
Observe the failure during the installation of
scipy
.Suggested Solution
To resolve this issue, follow the steps below:
Solution 1: Use a Compatible Python Version
Install a Supported Python Version (3.8 to 3.11):
If using
pyenv
:Set the Python Version for the Project:
pyenv local 3.11.6
Verify the Active Python Version:
Upgrade
pip
and Related Tools:Retry Installing
swarms
:Solution 2: Use Precompiled Wheels for
scipy
Upgrade
pip
:Install the Latest Version of
scipy
:Install
swarms
:Solution 3: Build
scipy
ManuallyIf necessary, build
scipy
manually with the required build tools:Install GCC and gfortran:
Verify gfortran Installation:
Retry Installing
swarms
:Notes
scipy
being incompatible with Python 3.13.1. A temporary workaround is to use a compatible Python version.swarms
or its dependencies can be updated to support Python 3.13, this issue may be resolved in future releases.Environment Details
The text was updated successfully, but these errors were encountered: