Installation and Environment
Installation and Environment
Section titled “Installation and Environment”Create a clean environment
Section titled “Create a clean environment”python3 --versionpython3 -m venv .venvsource .venv/bin/activatepython -m pip install --upgrade pippip install swarmspython -m pip show swarmsThe current package metadata checked for this site lists swarms 12.0.0 with Python >=3.10,<4.0. Recheck before serious use, and record the package version, provider, operating system, and first successful command.
Keep setup problems separated
Section titled “Keep setup problems separated”- Prove the command works before debugging provider keys.
- Do not mix tools, memory, gateways, and deployment into the install problem.
- Review installer source before using it on production machines.
A clean install is easier to debug
Section titled “A clean install is easier to debug”Use a fresh shell and a small environment. If install, provider auth, and workflow code all change at once, the first failure has too many possible causes. Keep the first session boring: command visible, package version visible, model call visible.
python3 -m venv .venvsource .venv/bin/activatepython -m pip install --upgrade pippip install swarmspython -m pip show swarms| After install | Why it matters |
|---|---|
| Package version is recorded | You know what future behavior is being compared against. |
| Python version is recorded | Many failures are environment mismatch, not framework behavior. |
| First command is recorded | Another person can reproduce the starting point. |
| Provider key is not in code | Examples stay safe to commit. |
Related pages
Section titled “Related pages”References
Section titled “References”- Installation: https://docs.swarms.world/installation.md
- PyPI package: https://pypi.org/project/swarms/