-
-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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
Comments
Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap. |
@MeltedMindz can you please provide the full error stack trace, so i can locate the root cause of the error pls |
@MeltedMindz scipy is not in the main swarms repo |
Hi @MeltedMindz, here is a method to run swarms in a python virtual environment using python 3.11 Install Python 3.12 via Homebrew: Create and Activate Virtual Environment: Install swarms and Dependencies: Let me know if this works and if you need anymore help. In the meanwhile we will work on making swarms more accessible and compatible. |
Hi, I'm new to swarms dev community. I have tried this recently on my rpi 4B and it works fine. Thanks! |
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: