Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ModuleNotFoundError: No module named 'cryptography'

these are the Error messages I am geeting on running any of my project modules.

Traceback (most recent call last):
  File "C:\Users\hsnl\BlockchainCodesTutor\Wallet.py", line 3, in <module>
    import Transactions
  File "C:\Users\hsnl\BlockchainCodesTutor\Transactions.py", line 2, in <module>
    import Signatures
  File "C:\Users\hsnl\BlockchainCodesTutor\Signatures.py", line 2, in <module>
    import cryptography
ModuleNotFoundError: No module named 'cryptography'

I have already installed the cryptography module and was working perfectly until today I start getting this message that " No module named 'cryptography'". I have again installed the cryptography as well as pip package but still showing the same error.

like image 569
showkat bhat Avatar asked Oct 28 '25 08:10

showkat bhat


1 Answers

There might be loose versions running on your system. Please try the following:

python -m pip uninstall cryptography
python -m pip install cryptography

You can also check out this with python -m to make sure you are not using a loose pip.

like image 196
PythonicOreo Avatar answered Oct 29 '25 22:10

PythonicOreo