Installation#
This page explains how to install salespyforce either from PyPI using pip or
from source by cloning the repository and building a wheel with poetry.
For prerequisites (Python version, Salesforce org access, API permissions), see
the Overview.
Warning
SalesPyForce 1.5.0 is the final release that supports Python 3.9, 3.10, and 3.11.
SalesPyForce 2.0.0 and newer will require Python 3.12 or newer.
Install With pip#
Use pip when you want the simplest setup and you are not modifying the code.
python -m pip install --upgrade pip
python -m pip install salespyforce
To verify the installation:
python -c "import salespyforce; print(salespyforce.__version__)"
Install From Source (Build With poetry)#
Use this approach if you plan to contribute, need unreleased changes, or want to inspect the code.
Clone the repository.
git clone https://github.com/jeffshurtliff/salespyforce.git
cd salespyforce
Install dependencies with Poetry.
poetry install
Build the distribution artifacts (wheel and source distribution).
poetry build
Install the built wheel with
pip.
python -m pip install dist/*.whl
If you prefer to use the package in editable mode while developing, you can install it directly from the repository with Poetry’s environment:
poetry run python -m pip install -e .
Troubleshooting#
If installation fails due to missing Python or environment issues, revisit the requirements on the Overview page and confirm your Python version matches the supported range.