当前位置:网站首页>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!
边栏推荐
- Is pioneer futures safe? What are the procedures for opening futures accounts? How to reduce the futures commission?
- Text matching - [naacl 2022] GPL
- 1105 spiral matrix (25 points)
- G - building a space station
- Matlab judge palindrome number (only numbers)
- How should we understand the variability of architecture design?
- M - smooth engineering continuation (minimum spanning tree)
- C. Registration system(map)
- Why do high precision CNC machining centers have errors? You should pay attention to these four reasons!
- Programming of left-hand trapezoidal thread
猜你喜欢
4.12 input() input function and comments
Pycharm----xx. So cannot open shared object file problem solving
The crystal ball "data insight" was officially launched: insight into the change of consumption trend and the details of interactive experience
At the beginning of the 2022 new year, I will send you hundreds of dry articles
Infrastructure is code. What are you talking about?
Scattered knowledge of C language (unfinished)
Oracle中的With As 子查询
Win10 one click Reset win10 to solve all system bugs without deleting any files and Applications
Mysql database - create user name & modify permission
The principle of fluent 2 rendering and how to realize video rendering
随机推荐
How many questions can you answer for the interview of Mechanical Engineer?
Win10 backup backup shows that creating a shared protection point on the shadow failed
Chapter III installation and use of jupyter
1136: password translation
Some reference routines for cache update
G - building a space station
What would you choose between architecture optimization and business iteration?
I - constructing roads
C language \t usage
1019 general palindromic number (20 points)
Help you accumulate audio and video knowledge, Agora developer's roaming guide officially set sail
Single cycle CPU of the design group of West University of Technology
1131: genetic correlation
国债逆回购在哪个平台上买比较安全?
Start your global dynamic acceleration journey of Web services in three steps
Soap comparison result file description
It's so brain - burning that no wonder programmers lose their hair
4.3 variables and assignments
Anyrtc implements application scenarios based on webrtc
Advanced functions of ES6 operation array map (), filter (), reduce()