Home > Backend Development > Python Tutorial > Why is pip Failing with a TLS/SSL Error and How Can I Fix It on Windows 10?

Why is pip Failing with a TLS/SSL Error and How Can I Fix It on Windows 10?

Barbara Streisand
Release: 2024-11-30 00:37:10
Original
483 people have browsed it

Why is pip Failing with a TLS/SSL Error and How Can I Fix It on Windows 10?

Issue: Encountering TLS/SSL Error with Pip

When attempting to install modules using pip3 in Python 3.6, users may encounter the following issue:

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
Copy after login

Cause:

This error typically occurs when Python's SSL module is not installed or enabled. The SSL module is responsible for secure TLS/SSL connections.

Resolution for Windows 10:

To resolve this issue in Windows 10 when using pip in a regular command prompt (not just in the Anaconda prompt), ensure that three specific environment paths are added to the system path:

  1. D:Anaconda3
  2. D:Anaconda3Scripts
  3. D:Anaconda3Librarybin

Many users often inadvertently add only D:Anaconda3Scripts, which can lead to the error persisting. By adding these three paths, the necessary environment variables will be established for pip to function correctly.

The above is the detailed content of Why is pip Failing with a TLS/SSL Error and How Can I Fix It on Windows 10?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template