Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Python3.9 User get error "AttributeError: module 'time' has no attribute 'clock'" #11

Closed
wkc41511 opened this issue Dec 23, 2021 · 3 comments

Comments

@wkc41511
Copy link

if u got this "AttributeError: module 'time' has no attribute 'clock'"

Try this

vim /usr/local/lib/python3.9/site-packages/Crypto/Random/_UserFriendlyRNG.py

line 77 : "t = time.clock()" to "t = time.perf_counter()"

@wkc41511
Copy link
Author

if got this "ModuleNotFoundError: No module named 'Crypto'"

Try this :
pip3.9 install pycrypto

@sabretus
Copy link

This helped me

pip3 uninstall PyCrypto
pip3 install -U PyCryptodome

@genericcontributor
Copy link
Collaborator

Thank you for the references.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants