В Python нет модуля с именем OpenSSL.Python

Программы на Python
Ответить
Anonymous
 В Python нет модуля с именем OpenSSL.

Сообщение Anonymous »

Я ищу в Google, как добавить OpenSSL в Python. Команду легко запустить.

Код: Выделить всё

pip install pyOpenSSL
или pip3 установите pyOpenSSL. Я не знаю, установлен ли уже мой OpenSSL. Я получил такой ответ, когда установил openssl.

Код: Выделить всё

DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Requirement already satisfied: pyopenssl in /usr/local/lib/python3.9/site-packages (20.0.1)
Requirement already satisfied: cryptography>=3.2 in /usr/local/lib/python3.9/site-packages (from pyopenssl) (36.0.1)
Requirement already satisfied: six>=1.5.2 in /usr/local/lib/python3.9/site-packages (from pyopenssl) (1.16.0)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.9/site-packages (from cryptography>=3.2->pyopenssl) (1.15.0)
Requirement already satisfied: pycparser in /usr/local/lib/python3.9/site-packages (from cffi>=1.12->cryptography>=3.2->pyopenssl) (2.21)
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
это мой код index.py

Код: Выделить всё

import base64
import json
import requests
from OpenSSL import crypto
когда я запускаю эту команду python3 index.py. Я всегда получаю эту ошибку

Код: Выделить всё

ModuleNotFoundError: No module named 'OpenSSL'
Могу ли я узнать, в чем проблема с моей настройкой? Я новичок в коде Python. Моя версия Python — 3.10.0

Подробнее здесь: https://stackoverflow.com/questions/713 ... -in-python
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Python»