AttributeError: module 'time' has no attribute 'clock' in Python 3.8

前端 未结 6 1782
悲哀的现实
悲哀的现实 2020-11-30 12:11

I have written code to generate public and private keys. It works great at Python 3.7 but it fails in Python 3.8. I don\'t know how it fails in the latest version. Help me w

6条回答
  •  再見小時候
    2020-11-30 12:57

    Check if you are using PyCrypto, if yes, uninstall it and install PyCryptodome which is a fork of PyCrypto

    PyCrypto is dead as mentioned on project issue page

    Since both these libraries can coexist, it could be an issue too

    pip3 uninstall PyCrypto
    pip3 install -U PyCryptodome
    

提交回复
热议问题