j'ai installé dans Openssl MAC (V 10.11.3)python (tordu) donne une erreur dans l'installation openssl dans MAC?
# brew upgrade
#brew install openssl
Warning: openssl 1.0.2l is already installed
I couru suivant les commandes trop;
easy_install PyOpenSSL
easy_install PyCrypto
Toutes ces commandes sont installées sans problème.
et a essayé de créer un lien avec OpenSSL brew
#brew link openssl
Et obtenir
Warning: Refusing to link: openssl
Linking keg-only openssl means you may end up linking against the insecure,
deprecated system OpenSSL while using the headers from Homebrew's openssl.
Instead, pass the full include/library paths to your compiler e.g.:
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib
Mais si je tente;
brew link /usr/local/opt/openssl/bin --force (or, **lib**, **include** folders)
Je reçois même pour tous les emplacements
Error: No available formula with the name "/usr/local/opt/openssl/bin"
Maintenant, lorsque je tente dans l'invite de commande python;
>>> from twisted.internet import reactor, endpoints
je suis l'erreur suivante
AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'
pile Erreur pleine
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/Twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/reactor.py", line 38, in <module>
from twisted.internet import default
File "/Library/Python/2.7/site-packages/Twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/default.py", line 56, in <module>
install = _getInstallFunction(platform)
File "/Library/Python/2.7/site-packages/Twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/default.py", line 50, in _getInstallFunction
from twisted.internet.selectreactor import install
File "/Library/Python/2.7/site-packages/Twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/selectreactor.py", line 18, in <module>
from twisted.internet import posixbase
File "/Library/Python/2.7/site-packages/Twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/posixbase.py", line 18, in <module>
from twisted.internet import error, udp, tcp
File "/Library/Python/2.7/site-packages/Twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/tcp.py", line 28, in <module>
from twisted.internet._newtls import (
File "/Library/Python/2.7/site-packages/Twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/_newtls.py", line 21, in <module>
from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
File "/Library/Python/2.7/site-packages/Twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/protocols/tls.py", line 63, in <module>
from twisted.internet._sslverify import _setAcceptableProtocols
File "/Library/Python/2.7/site-packages/Twisted-17.9.0rc1-py2.7-macosx-10.11-intel.egg/twisted/internet/_sslverify.py", line 38, in <module>
TLSVersion.TLSv1_1: SSL.OP_NO_TLSv1_1,
AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'
>>>
Comment puis-je résoudre ce problème?
EDIT
Si je tente
>>> import OpenSSL
Rien imprimé
Mais si j'essaie
>>> import twisted.internet.ssl
Je me ci-dessus mentionné question.
J'ai la version torsadée suivante installée;
>>> import twisted
>>> twisted.__version__
'17.9.0rc1'
>>>
Ce n'est ni la dernière version de Twisted, ni la bonne façon de l'installer ('' ... pip sudo) sur n'importe quel système. : / –