我正在尝试使用命令行在Windows上安装OpenSSL for Python。
我试过运行以下命令:
pip install OpenSSL
我收到以下错误:
Could not find a version that satisfies the requirement openssl (from versions: )
No matching distribution found for openssl
我也试过这样做:
pip install pyopenssl
这成功但是,当我尝试运行具有以下行的python脚本时,它显示错误:
from OpenSSL import crypto, SSL
错误:
Traceback (most recent call last):
File "C:\Users\ajayv\AppData\Local\Programs\Python\Python36-32\Scripts\ENV\Scripts\PDB Latest 1250\Endpoints\X.509.py", line 1, in <module>
import OpenSSL
ModuleNotFoundError: No module named 'OpenSSL'
我错过了什么吗?请告诉我。