因为需要在代码中import OpenSSL , 笔者就准备使用pip3 install 的方式安装 OpenSSL,结果报如下错误:
[qq5201351@localhost ~]$ pip3 install OpenSSL ERROR: Could not find a version that satisfies the requirement OpenSSL (from versions: none) ERROR: No matching distribution found for OpenSSL WARNING: You are using pip version 20.2.1; however, version 22.3.1 is available. You should consider upgrading via the '/home/qq5201351/.Python-3.8.6/bin/python3.8 -m pip install --upgrade pip' command. [qq5201351@localhost ~]$ $
看来就没有叫OpenSSL这个模块的包,最后查询了一下,虽然在代码中是叫OpenSSL
但是我们在安装时,应该使用如下的方法,安装 pyopenssl
[qq5201351@localhost ~]$ pip3 install pyopenssl
注意的是安装成功后,在代码中模块的名称叫OpenSSL,因此很多代码中可以看到 import OpenSSL
尊重别人的劳动成果 转载请务必注明出处:https://www.cnblogs.com/5201351/p/17008161.html
标签:requirement,qq5201351,OpenSSL,version,报错,install,ERROR,安装 From: https://www.cnblogs.com/5201351/p/17008161.html