我知道这个问题已经发布了一千次了,但我觉得我的项目和环境中一切都很好(因为我的代码工作了一周,突然没有改变它,它停止了对这些错误的工作)
有没有人能告诉我哪里出了问题,怎么修?重新安装软件包不起作用。
使用python 3.6.6
代码:
#Imports
import sys
import pandas as pd
import pyodbc
import datetime
from termcolor import colored
import openpyxl as xl
from colored import fg, bg, attr
例如,放置另一个导入术语颜色不会改变任何东西。
发布于 2021-07-13 15:28:09
不要使用"from“仅使用"import termcolor”
发布于 2021-07-13 15:29:00
如果我没记错的话,Termcolor需要命令提示符pip install termcolor。
希望这能起作用!
发布于 2021-07-13 15:35:00
确保您使用的是与termcolor
一起安装的正确解释器。
https://stackoverflow.com/questions/68358132
复制相似问题