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

前端 未结 6 1781
悲哀的现实
悲哀的现实 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:51

    AttributeError: module 'time' has no attribute 'clock' 
    

    It is deprecated as said which means just use the latest versions of libraries that have that module. For example, depending on the dependency you have, Remove and Install

    Crypto==1.4.1, or Mako==1.1.2 or SQLAlchemy==1.3.6 //etc

    The idea is you don't have to downgrade your python version as this will catch up with you later. Just update the packages to more late ones which are compatible with Python 3.8

提交回复
热议问题