python-binance icon indicating copy to clipboard operation
python-binance copied to clipboard

On Ubuntu, ModuleNotFoundError: No module named 'cryptography.hazmat.bindings._constant_time'

Open legoly opened this issue 8 years ago • 2 comments

I was able to run fine on macOS, but after I installed python-binance and try to run, I get this error:

ModuleNotFoundError: No module named 'cryptography.hazmat.bindings._constant_time'

I found some descriptions how to fix, but they're for Amazon Linux, not Ubuntu. I'm on version 16.0 on EC2.

Can anyone point me in the right direction?

legoly avatar May 11 '18 18:05 legoly

Try running sudo apt-get install build-essential libssl-dev libffi-dev python-dev to ensure you have python build essentials installed.

source: https://stackoverflow.com/questions/22073516/failed-to-install-python-cryptography-package-with-pip-and-setup-py

junw3i avatar May 21 '18 09:05 junw3i

I'm having this issue on Windows as well.

rexovatek avatar Oct 28 '18 18:10 rexovatek