pip install安装时服务器证书认证失败

问题描述

当借助pip安装GitHub上的相关Python库时:

pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch

出现如下问题:

fatal: unable to access ‘https://github.*****’: server certificate verification failed. CAifle: none CRL file: none
error: subprocess-exited-with-error

解决方法

问题原因是需要ssl验证,可通过取消ssl验证解决,如下:

git config --global http.sslverify false
git config --gloabal https.sslverify false

猜你喜欢

转载自blog.csdn.net/m624197265/article/details/129858230