Cryptography 在secp256k1 python中启用ECDH?

Cryptography 在secp256k1 python中启用ECDH?,cryptography,python-3.6,diffie-hellman,Cryptography,Python 3.6,Diffie Hellman,我已经安装了secp256k1,因此我可以使用ECDH功能 sudo apt-get install libssl-dev build-essential automake pkg-config libtool libffi-dev libgmp-dev libyaml-cpp-dev pip install secp256k1 在它的文件上写着 NOTE: ecdh can only be used if the secp256k1 C library is compiled with s

我已经安装了secp256k1,因此我可以使用ECDH功能

sudo apt-get install libssl-dev build-essential automake pkg-config libtool libffi-dev libgmp-dev libyaml-cpp-dev
pip install secp256k1
在它的文件上写着

NOTE: ecdh can only be used if the secp256k1 C library is compiled 
with support for it. If there is no support, an Exception will be 
raised when calling it
显然它失败了,因为我没有安装C库

然后我安装了

根据文件。 然后我卸载了secp256k1并再次安装

pip uninstall secp256k1 
LIB_DIR=/usr/local/lib pip install secp256k1 --no-binary 
尽管如此,我在尝试运行ECDH时还是遇到了同样的错误。我怎样才能消除这个错误呢