错误现象:ImportError: cannot import name ‘byte_string‘ from ‘Crypto.Util.py3compat‘ (/usr/local/lib/python3.9

报错原因: 版本太旧,需要重新安装最新版

解决方法:

pip3 uninstall pycrypto
pip3 uninstall pycryptodome
pip3 install pycryptodome

python 报错 cannot import name ‘byte_string‘ from ‘Crypto.Util.py3compat‘ 解决方法相关推荐

  1. python报错ValueError: invalid literal for int() with base 10解决方法

    原因:把带有小数的字符串强转为int 解决方法: 如果你非要用int,那就在int中加个float,例如: int(float(xxx)) 如果只是想将提取的字符串转换为数字,那就将int改为floa ...

  2. 在NPP运行Python报错:SyntaxError: Non-ASCII character '\xe5' in file的解决方法

    SyntaxError: Non-ASCII character '\xe5' in file 解决方法: 在源码的第一行添加以下语句: #coding=utf-8 或者 # -*- coding ...

  3. svn update 报错,必须先cleanup,然后cleanup失败解决方法

    svn update 报错,必须先cleanup,然后cleanup失败解决方法 参考文章: (1)svn update 报错,必须先cleanup,然后cleanup失败解决方法 (2)https: ...

  4. 安装linux 系统报错:No DEFAULT or UI configuration directive found 解决方法

    安装linux 系统报错:No DEFAULT or UI configuration directive found 解决方法 参考文章: (1)安装linux 系统报错:No DEFAULT or ...

  5. 使用ANT编译项目报错 com.sun.image.codec.jpeg does not exist 解决方法

    使用ANT编译项目报错 com.sun.image.codec.jpeg does not exist 解决方法 参考文章: (1)使用ANT编译项目报错 com.sun.image.codec.jp ...

  6. 【pycharm】pycharm上安装tensorflow,报错:AttributeError: module ‘pip‘ has no attribute ‘main‘ 解决方法

    [pycharm]pycharm上安装tensorflow,报错:AttributeError: module 'pip' has no attribute 'main' 解决方法 参考文章: (1) ...

  7. mycat重启报错Failed to connect to the Wrapper at port解决方法

    mycat重启报错Failed to connect to the Wrapper at port解决方法 参考文章: (1)mycat重启报错Failed to connect to the Wra ...

  8. maven文件报错(pom.xml或者jar包缺失)解决方法

    maven文件报错(pom.xml或者jar包缺失)解决方法 参考文章: (1)maven文件报错(pom.xml或者jar包缺失)解决方法 (2)https://www.cnblogs.com/wa ...

  9. 报错:Parameter ‘XXX‘ implicitly has an ‘any‘ type.解决方法

    报错:Parameter 'XXX' implicitly has an 'any' type.解决方法 tsconfig.json添加"noImplicitAny": false ...

最新文章

  1. thinkphp_ajax分页实现_无需整理
  2. 【Matlab 控制】利用 Simulink 对微分代数方程建模
  3. 第七章-NoSQL数据库
  4. 网站 asp和php的用途,asp和php都有什么功能?
  5. matlab怎么计算行列式,Matlab 线性代数(一)–行列式与方程组求解 | 学步园
  6. SpaceX和美国宇航局计划明年4月向国际空间站发射Crew-4
  7. 点击按钮对两个div的隐藏与显示进行切换
  8. Android开发笔记(成长轨迹)
  9. 安装spoonwep
  10. NLP笔记之文本聚类
  11. 软件设计过程--概要设计详细设计
  12. Word删除空白页方法,由分节符导致多出空白页删除方法
  13. zotero文献管理器及其使用姿势(不定时更新)
  14. java 本地连接状态_本地连接受限制
  15. NeoCognitron
  16. PVE booting from Hard Disk
  17. 香农编码的C++实现及求平均码长和编码效率
  18. 计算机考研落榜了怎么办,一位考研落榜者的自述:考研失败的原因
  19. 2021-02-18-ctf-坚持60s-反编译
  20. 《操作系统设计原理》第一章习题

热门文章

  1. new char[x]和new char(x)的差别
  2. 【100题】 第四十七题 序列的最长递增、递减序列
  3. Linux升级OpenSSH完整手册
  4. OEMAddressTable介绍
  5. java读取mysql配置文件_一文读懂 MySQL 主从复制读写分离
  6. Tungsten Fabric SDN — 与 OpenStack 的集成部署
  7. 5G 信令流程 — 5GC 的移动性管理(MM,Mobility Management)
  8. 软件性能测试类型和指标
  9. 解压缩工具 WinRAR 5.71 + x64 Final 中文汉化版
  10. yii2-wx / 微信二维码接口