-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
What's the problem this feature will solve?
Beginners to Python sometimes try to install standard library modules and end up confused when met with a no distributions found for XXX error.
Describe the solution you'd like
Ideally, pip would let the user know they're attempting to install a standard library module.
This would be helpful for situations where the user is simply unaware that the module is built-in, saving them the frustration of not being able to use the stdlib module (telling them "you don't need to install it, matter of fact!"). This wouldn't be that helpful when a stdlib module is missing (e.g. missing build dependencies or a Debian-style split-up Python install), but the error's associated write-up could potentially go into further detail.
Alternative Solutions
n/a
Additional context
One other problem is that sys.stdlib_module_names was only added in Python 3.10. Maintaining a separate list of standard library modules doesn't sound like a good use of our time, so this error could only exist on Python 3.10+.
Code of Conduct
- I agree to follow the PSF Code of Conduct.