본문 바로가기
놀기/에러 잡기

PyCryptodome 설치, AttributeError: module 'time' has no attribute 'clock'

by Hi~ 2021. 10. 30.

열심히 Crypto를 설치했는데, 에러가 발생했다. 찾아 보니 Crypto를 지우고 PyCryptodome를 설치하라고 한다.

 

  File "/home/dev/.local/lib/python3.8/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 129, in read
    self._ec.collect()
  File "/home/dev/.local/lib/python3.8/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 77, in collect
    t = time.clock()
AttributeError: module 'time' has no attribute 'clock'
$ pip uninstall PyCrypto
Found existing installation: pycrypto 2.6.1
Uninstalling pycrypto-2.6.1:
  Would remove:
    /home/dev/.local/lib/python3.8/site-packages/Crypto/*
    /home/dev/.local/lib/python3.8/site-packages/pycrypto-2.6.1.dist-info/*
Proceed (y/n)? y
  Successfully uninstalled pycrypto-2.6.1
$ pip install -U PyCryptodome
Collecting PyCryptodome
  Downloading pycryptodome-3.11.0-cp35-abi3-manylinux2010_x86_64.whl (1.9 MB)
     |████████████████████████████████| 1.9 MB 6.4 MB/s 
Installing collected packages: PyCryptodome
Successfully installed PyCryptodome-3.11.0
$

 

 

2021.10.30 - [분류 전체보기] - pycrypto 설치하기 (ModuleNotFoundError: No module named 'Crypto')

 

pycrypto 설치하기 (ModuleNotFoundError: No module named 'Crypto')

파이썬에서 Crypto.Random를 사용하려고 하는데 설치가 안돼서 이리저리 찾아본 후에 정리를 한다. 일단 pycrypto를 설치하라고 하는데 에러가 난다. $ pip install pycrypto Collecting pycrypto Using cached py..

busyman.tistory.com

 

댓글