当前位置:网站首页>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!
边栏推荐
- Noj1042 - electronic mouse running through maze
- Some reference routines for cache update
- 1062 talent and virtue (25 points)
- NPM install --global --save --save dev differences
- How should we understand the variability of architecture design?
- 4.3 variables and assignments
- 1134: Legal C identifier query
- 1133: output family and friends string
- The crystal ball "data insight" was officially launched: insight into the change of consumption trend and the details of interactive experience
- Single cycle CPU of the design group of West University of Technology
猜你喜欢

4.4 string

Some reference routines for cache update

Chapter III installation and use of jupyter

Review 2021, embrace change and live up to Shaohua

Mysql database - create user name & modify permission

Scattered knowledge of C language (unfinished)

Experiment of the planning group of the West University of technology -- pipeline CPU and data processing Adventure

Kubernetes: a comprehensive analysis of container choreography

Preliminary study on AI noise reduction evaluation system of sound network

The short video and live broadcast incubation training camp with goods opens nationwide enrollment!
随机推荐
1134: Legal C identifier query
Industry analysis | the future of real-time audio and video
Don't fight for big companies
Rte2021 review of the practice and the way of AI OPS landing
Summary of system stability construction practice
1105 spiral matrix (25 points)
J - Borg maze (minimum spanning tree +bfs)
Matlab function for limit, definite integral, first-order derivative, second-order derivative (classic examples)
4.4 string
1025 pat ranking (25 points)
Kubernetes: a comprehensive analysis of container choreography
Joint examination for management -- sample composition
How does sd-rtn ensure the high availability of RTE services after infrastructure failure
A little idea about big experiment data
容器常用命令
Oracle中的With As 子查询
Mysql database - create user name & modify permission
Review 2021, embrace change and live up to Shaohua
Developer practice - the future of Agora home AI audio and video
1130: find the first character that appears only once