The library is only available as pycryptodome, under the Crypto namespace. The self-tests are now run by pytest, which must be installed for python -m Crypto.SelfTest to work. The test command of ...
这个其实是缺少pycryptodome,而不是pycrypto。 有些教程会让你装pycrypto,但那个老库在Python 3环境里基本没法直接用,装完反而更糟。 正确的做法是统一安装pycryptodome,它会以 Crypto 作为模块名存在,和RsaCtfTool的导入方式保持一致。