열심히 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')
'놀기 > 에러 잡기' 카테고리의 다른 글
error LNK2019: __imp__accept@12_ff_accept 함수에서 참조되는 확인할 수 없는 외부 기호 (0) | 2023.02.04 |
---|---|
wpcap.dll이(가) 없어 코드 실행을 진행할 수 없습니다. (0) | 2022.07.13 |
pycrypto 설치하기 (ModuleNotFoundError: No module named 'Crypto') (0) | 2021.10.30 |
ModuleNotFoundError: No module named 'numpy' (0) | 2021.10.29 |
ModuleNotFoundError: No module named 'pymysql' (0) | 2021.10.29 |
댓글