How to Install schedule in Python
Job scheduling for humans.
pip install schedule
What is schedule?
Job scheduling for humans.
Python job scheduling for humans. Run Python functions (or any other callable) periodically using a friendly syntax.
- A simple to use API for scheduling jobs, made for humans. - In-process scheduler for periodic jobs. No extra processes needed! - Very lightweight and no external dependencies. - Excellent test coverage. - Tested on Python and 3.7, 3.8, 3.9, 3.10, 3.11, 3.12
def jobwithargument(name): print(f"I am {name}")
Quick Start
Minimal example to get started with schedule:
import schedule
print(schedule.__version__)
Installation
pip (standard)
pip install schedule
Virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install schedule
pip3
pip3 install schedule
conda
conda install -c conda-forge schedule
Poetry
poetry add schedule
Verify the Installation
After installing, confirm the package is available:
python -c "import schedule; print(schedule.__version__)"
If this prints a version number, installation succeeded. If you see a ModuleNotFoundError, see the errors section below.
Installation Errors
Common errors when installing schedule with pip.
ModuleNotFoundError: No module named 'schedule'
Cause: The package is not installed in the current Python environment.
Fix: Run pip install schedule. If using a virtual environment, ensure it is activated first.
ModuleNotFoundError: No module named 'schedule' (installed but still failing)
Cause: pip installed the package into a different Python than the one running your script.
Fix: Use python -m pip install schedule to install into the interpreter you are running.
ImportError: cannot import name 'X' from 'schedule'
Cause: The function or class does not exist in the installed version.
Fix: Check the version with pip show schedule and upgrade with pip install --upgrade schedule.
pip: command not found
Cause: pip is not in PATH or Python was not added to PATH during installation.
Fix: Try python -m pip install schedule. On macOS/Linux try pip3.
PermissionError: [Errno 13] Permission denied
Cause: No write access to the system Python package directory.
Fix: Use a virtual environment, or add --user: pip install --user schedule
SSL: CERTIFICATE_VERIFY_FAILED
Cause: pip cannot verify PyPI's SSL certificate — common behind corporate proxies.
Fix: Try: pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org schedule
Recent Releases
| Version | Released |
|---|---|
1.2.2 latest |
2024-05-25 |
1.2.1 |
2023-10-01 |
1.2.0 |
2023-04-10 |
1.1.0 |
2021-04-10 |
1.0.0 |
2021-01-30 |
Manage schedule
Upgrade to latest version
pip install --upgrade schedule
Install a specific version
pip install schedule==1.2.2
Uninstall
pip uninstall schedule
Check what is installed
pip show schedule