5

I am trying to run a piece of code using paramiko, but I get the error message ImportError: No module named cryptography.hazmat.backends. Both paramiko and cryptography are already installed.

As far as I can read on various forums, I need to install libffi-dev (and maybe also libssl-dev). However, all solutions I can find are either for Ubuntu or Mac OS. How do I install them on Windows 10?

A. A. Pedersen
  • 161
  • 1
  • 1
  • 8

1 Answers1

0

Solved the issue by running

pip install cryptography --force-reinstall

and

pip install paramiko --force-reinstall
Dharman
  • 30,962
  • 25
  • 85
  • 135
A. A. Pedersen
  • 161
  • 1
  • 1
  • 8