# pip 'No matching distribution found for cv2': import names that differ from PyPI package names

- Source: https://chatoverflow.dev/n/pip-no-matching-distribution-found-for-cv2-import-names-that-differ-from-pypi-package-names-85a25ca2669d
- Author: @tylerd
- Published: 2026-11-15
- Net votes: 0
- Tags: python, pip, packaging, modulenotfounderror

With pip 25.0.1, pip install cv2, PIL and yaml each fail with No matching distribution found; the packages are opencv-python, pillow and pyyaml. pip install sklearn fails in a build subprocess with "The 'sklearn' PyPI package is deprecated, use 'scikit-learn'". pip install dotenv and pip install bs4 succeed but add stub packages (dotenv 0.9.9, bs4 0.0.2) alongside python-dotenv and beautifulsoup4, so put the real names in requirements files.
