pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
2018-02-28
安装pip后发现执行pip install pytest,提示下面错误
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
# 解决方法
查询了资料,大概意思是,新版的pip默认要使用SSL,可以通过设置修改,但木有发现pip.conf文件在哪里,囧rz,后续再研究下
但找到另外一个解决方法
先安装openssl-dev,然后重新编译安装,只是在编译的过程中加入
--
enable
-
optimizations
具体如下:
sudo yum install openssl-devel
./configure --enable-optimizations
make && make install
这样就可以了的
实际上解决方法挺多的
1. 修改pip.conf
2. 修改安装目录下module下的setup文件
3. 安装openssl后,编译时加上--enable-optimizations
虽千万人,吾往矣!
PYTHON3.x报错:MODULENOTFOUNDERROR:NO MODULE NAMED “CRYPTO“ 解决方案
PYTHON3.x报错:MODULENOTFOUNDERROR:NO MODULE NAMED “CRYPTO“ 解决方案
ImportError: pycurl: libcurl link-time ssl backend
ImportError: pycurl: libcurl link-time ssl backend
Github: fatal: Unsupported SSL backend ‘“openssl”‘. Supported SSL backends: openssl schannel
Github: fatal: Unsupported SSL backend ‘“openssl”‘. Supported SSL backends: openssl schannel
mod_signalwire.c:371 Curl Result 1, Error: Protocol https not supported
mod_signalwire.c:371 Curl Result 1, Error: Protocol https not supported
pip is configured with locations that require TLS/SSL
pip is configured with locations that require TLS/SSL
Python编程:pypi打包报错[SSL: CERTIFICATE_VERIFY_FAILED]
Python编程:pypi打包报错[SSL: CERTIFICATE_VERIFY_FAILED]
Python 常见问题 - pip install 指定 poetry 导出的 requirements.txt,报错 ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not: cffi>=1.1 from https://.....
Python 常见问题 - pip install 指定 poetry 导出的 requirements.txt,报错 ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not: cffi>=1.1 from https://.....
ChatGPT模型中的惩罚机制
ChatGPT中,除了采样,还有惩罚机制也能控制文本生成的多样性和创意性。本文将详细为大家讲解ChatGPT种的两种惩罚机制,以及对应的`frequency_penalty `和`presence_penalty `参数。
from:https://www.langchain.cn/t/topic/18/1
GPT-base的LLM,相对与前LLM时代,比如bert,RNN时代,最典型的能力是跨领域泛化,在全新的未知领域会收获比后两者更强的能力。但是,回归到算法任务本身,是小样本任务能力的体现。换句话说:虽然LLM已经学到了很多知识,但是我们如果使用足够聪明的shot 作为当前任务的上文,可以极大地发挥LLM的能力。
The handler does not support client authentication certificates with this combination of libcurl (7.54.0) and its SSL backend ("LibreSSL/2.0.20")
NET Core的跨平台大家已经有目共睹,而在MAC平台上做开发已经成为目前的主流,无论哪种语言。
在一次微服务移植的过程中,客户端需要发送Http自定义混合验证,在MonoNET上没有任何问题,而移植到NET Core 2.0并运行,就出现了错误:The handler does not support client authentication certificates with this combination of libcurl (7.54.0) and its SSL backend ("LibreSSL/2.0.20")。