How to Fix \'pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available\'?

Mary-Kate Olsen
Release: 2024-11-24 12:20:45
Original
894 people have browsed it

How to Fix

How to Resolve "pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available" Error

The Python package manager, pip, requires the presence of the ssl module to establish secure connections over TLS/SSL. If you encounter the aforementioned error while using pip, it's likely due to the absence of the ssl module in your Python installation.

Solution: Adding Python Environment Paths (Windows 10)

For Windows 10 users, to enable pip functionality beyond the Anaconda prompt, you need to add the following three environment paths:

D:\Anaconda3
D:\Anaconda3\Scripts
D:\Anaconda3\Library\bin
Copy after login

Note that adding only D:Anaconda3Scripts may be insufficient. By including all three paths, you will ensure that the ssl module and other necessary dependencies are available to pip.

The above is the detailed content of How to Fix \'pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available\'?. 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