当前位置:网站首页>from Crypto. Cipher import AES could not find the solution record with module error
from Crypto. Cipher import AES could not find the solution record with module error
2022-06-30 15:34:00 【But the teacher】
background
When studying the flying Book incident , Flying book gives a case , The first line is
from Crypto.Cipher import AES
The module cannot be found by running the error report Crypto.Cipher
solve
Try the following centralized scheme , The last one is feasible . If you are looking for a solution , Please skip to the end
pip install crypto
According to the principle of "what is missing is what is installed" , Module installed , But it can't carry out , It's embarrassing , There is no corresponding description in the development documents- Try to change the import to
from crypto.Cipher import AES
Change upper case to lower case , Similarly, an error is reported and the module cannot be found - Try to change the import to
from crypto.cipher import AES
Lower case again , Still reporting a mistake
- Try to change the import to
pip install pycrypto
Then it is said that there are some follow-up modulespycrypto, The same error is reported after installationpip install pycryptodome
The module cannot be found by running the same error messageTo uninstall first , Install again
pip uninstall crypto
pip uninstall pycrypto
pip install pycryptodome
Under this scheme , The original code is feasible
Notice that this is dome, No demo!
边栏推荐
- Chapter III installation and use of jupyter
- Forward declaration of classes
- 1130: find the first character that appears only once
- Kubernetes: a comprehensive analysis of container choreography
- Experiment of the planning group of the West University of technology -- pipeline CPU and data processing Adventure
- Matlab function for limit, definite integral, first-order derivative, second-order derivative (classic examples)
- Explain service idempotency design in detail
- Npumcm selection question 3 and acmc2020a
- [matlab] 3D drawing summary
- 4.2 escape characters
猜你喜欢

(Niuke) BFS

Shift operator (detailed)

Matlab judge palindrome number (only numbers)

RTC monthly tabloid programming challenge ended successfully in June; Review of the first anniversary of sound network's listing

Help you accumulate audio and video knowledge, Agora developer's roaming guide officially set sail

Web technology sharing | whiteboard toolbar encapsulation of Web

Advanced functions of ES6 operation array map (), filter (), reduce()

It's so brain - burning that no wonder programmers lose their hair

Matlab construction operation example

Determine the number of digits of an integer in MATLAB (one line of code)
随机推荐
Kubernetes: a comprehensive analysis of container choreography
4.1 print function
Matlab calculates the factorial sum of the first n numbers (easy to understand)
It's so brain - burning that no wonder programmers lose their hair
Matlab to find prime pairs within 100
(Niuke) BFS
Matlab finds prime numbers within 100
1018 public bike Management (30 points)
Scattered knowledge of C language (unfinished)
1035 password (20 points)
[untitled]
4.2 escape characters
J - Borg maze (minimum spanning tree +bfs)
return statement
容器常用命令
Notes on zero basic C language learning -- first introduction -- 1 notes that mom can understand
4.7 type() function query data type
Distributed -- openresty+lua+redis
Examples of bubble sorting and matrix element screening in MATLAB
Start your global dynamic acceleration journey of Web services in three steps