pythonpython" />

Python3报错:from StringIO import StringIO ModuleNotFoundError: No module named 'StringIO'

📅 2024-11-04
👁️ 840 阅读
💬 0 评论
📂 未分类
0

在 Python 3 中,StringIO 模块已经被移到了 io 模块中。在 Python 2 中,StringIO 是一个独立的模块,
如果用的 Python 3版本,编辑.py文件,将文件中的from StringIO import StringIO改为from io import StringIO
Python3报错:from StringIO import StringIO ModuleNotFoundError: No module named 'StringIO'

← 上一篇Python3报错:from urllib import unquote ImportError: cannot import name 'unquote' from 'urllib' (/usr/lib/python3.11/urllib/__init__.py)下一篇 →Docker快速部署chatgpt

💬 评论 (0)

发表评论

😀 😂 😅 😍 😒 😓 😔 😖 😘 😡 😭 😱 😤 😴 😷 😵 😎 👍 👎 👏 🙏 ❤️ 💔 🎉 🎂 🤕 😏 👻