我正在尝试使用这个github template来设置一个项目。但是,在尝试查找依赖项时,我得到了以下错误消息:
catch2/2.13.7: Not found in local cache, looking in remotes...
ERROR: Failed requirement 'catch2/2.13.7' from 'conanfile.py (CppStarterProject/0.1)'
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 cci=https://center.conan.io
1. Make sure the remote is reachable or,
2. Disable it by using conan remote disable,
Then try again.
CMake Error at build/conan.cmake:631 (message):
Conan install failed='1'
Call Stack (most recent call first):
cmake/Conan.cmake:47 (conan_cmake_install)
CMakeLists.txt:66 (run_conan)当尝试ping center.conan.io时,它似乎是在线的,而https://downforeveryoneorjustme.com/center.conan.io?proto=https确实说它在运行。
我错过了什么?
发布于 2021-10-10 08:50:43
Conan有时似乎不更新它的证书颁发机构(可能是您手动编辑的)。确保您使用的是最新的Conan版本,并从您的主文件夹中的.conan目录中删除cacert.pem,然后重新运行Conan应该会生成具有最新权限的更新的cacert.pem。
https://stackoverflow.com/questions/69513663
复制相似问题