How to Install parameterized in Python
Parameterized testing with any Python test framework
pip install parameterized
What is parameterized?
Parameterized testing with any Python test framework
Parameterized testing with any Python test framework
`` fixes that. For everything. Parameterized testing for nose, parameterized testing for py.test, parameterized testing for unittest.
# testmath.py from nose.tools import assertequal from parameterized import parameterized, parameterizedclass
Quick Start
Minimal example to get started with parameterized:
import parameterized
print(parameterized.__version__)
Installation
pip (standard)
pip install parameterized
Virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install parameterized
pip3
pip3 install parameterized
conda
conda install -c conda-forge parameterized
Poetry
poetry add parameterized
Verify the Installation
After installing, confirm the package is available:
python -c "import parameterized; print(parameterized.__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 parameterized with pip.
ModuleNotFoundError: No module named 'parameterized'
Cause: The package is not installed in the current Python environment.
Fix: Run pip install parameterized. If using a virtual environment, ensure it is activated first.
ModuleNotFoundError: No module named 'parameterized' (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 parameterized to install into the interpreter you are running.
ImportError: cannot import name 'X' from 'parameterized'
Cause: The function or class does not exist in the installed version.
Fix: Check the version with pip show parameterized and upgrade with pip install --upgrade parameterized.
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 parameterized. 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 parameterized
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 parameterized
Recent Releases
| Version | Released |
|---|---|
0.9.0 latest |
2023-03-27 |
0.8.1 |
2021-01-09 |
0.7.5 |
2021-01-04 |
0.7.4 |
2020-04-14 |
0.7.2 |
2020-04-12 |
Manage parameterized
Upgrade to latest version
pip install --upgrade parameterized
Install a specific version
pip install parameterized==0.9.0
Uninstall
pip uninstall parameterized
Check what is installed
pip show parameterized