[英]HTTPSConnectionPool error when trying to install gtest with conan
我正在嘗試使用 conan 安裝 gtest,但是當我這樣做時,出現以下錯誤:
gtest/1.11.0: Not found in local cache, looking in remotes...
gtest/1.11.0: Trying with 'conancenter'...
ERROR: HTTPSConnectionPool(host='center.conan.io', port=443): Max retries exceeded with url: /v1/ping (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))
Unable to connect to conancenter=https://center.conan.io
1. Make sure the remote is reachable or,
2. Disable it by using conan remote disable,
Then try again.
但是我不確定為什么它不起作用
該軟件包確實存在( https://conan.io/center/gtest )
而且我也在使用 conan 來安裝其他軟件包,我對它們沒有任何問題
我的完整 conanfile 看起來像這樣:
[requires]
libcurl/7.78.0
cjson/1.7.15
gtest/1.11.0
[options]
openssl:shared=True
[generators]
cmake
有誰知道為什么我有這個錯誤?
我在 Windows 11 上使用 conan 1.37.0
此錯誤與已棄用的證書有關。
這里討論過: https : //github.com/conan-io/conan/issues/9695
總而言之,您有兩個選擇:
將您的柯南客戶端更新為 >= 1.41.0(最佳解決方案):
pip install -U conan
安裝新證書(解決方法):
conan config install https://github.com/conan-io/conanclientcert.git
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.