且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

由于环境错误而无法安装软件包:找不到合适的TLS CA证书包,路径无效

更新时间:2023-08-22 09:54:10

在Windows 10中, 1.使用以下命令找到certifi的位置,以检查是否已安装

In Windows 10, 1. Find the location of certifi with following commands to check if installed already

import certifi
certifi.where()

  1. 记下cacert.pem文件的路径

  1. Note down the path of cacert.pem file

在Windows资源管理器中搜索pip.ini文件,然后在记事本中编辑该文件,然后设置path = <file path of cacert.pem >

Search for the pip.ini file in windows explorer and edit the file in notepad and set the path = <file path of cacert.pem >