-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
What's the problem this feature will solve?
I’ve seen quite a few issues on the tracker on the same error message:
WARNING: pip is configured with locations that require TLS/SSL,
however the ssl module in Python is not available.
They all have the same root cause: The ssl
built-in module is not available, and pip cannot access HTTPS URLs without it. The warning is however not easy to understand for less experienced users, and they tend to report this as an issue (pypa/virtualenv#1139, #8171, #8472 to list a few. It is, however, a system configuration problem that pip cannot fix.
Describe the solution you'd like
Revise the error message to clearly say
- This is not a pip bug.
- Propose the solution to the most likely causes
a. If the user is using a self-compiled Python, it needs to be recompiled.
b. If the user is using pyenv, the system is missing build dependencies. This wiki page lists instructions on common platforms.
c. If the Python is installed by Anaconda or a package manager (e.g. Homebrew), this is likely a runtime configuration issue. - Point to a documentation page that discusses the issue in detail, and provide more generic solutions if none of the specific instructions fit the user’s scenario.
- Instruct the user to ask for help on pypa/packaging-problems.
Alternative Solutions
Do nothing, and continue marking the issues as duplicates. They are not that common, so the overhead isn’t that bad. Maybe it’s possible to have a bot responding to them as well.
Additional context
Some popular destinations if you search the issue description on the Internet. They list quite a few popular causes to this that can be helpful:
- StackOverflow (has diagnoses for Anaconda on Windows, Homebrew on macOS, and generic compiled-from-source scenarios)
- AskUbuntu (i.e. similar to the SO one, but Ubuntu-specific)
- Unix/Linux (describing a compiled-from-source scenario)
Metadata
Metadata
Assignees
Labels
Projects
Status