LoginSignup
1
1

More than 1 year has passed since last update.

備忘録: pycharm community termcolor最新版2.1.1でrunさせたとき、コンソールに色の付いた文字が出力されなかった問題

Posted at

OS: Win10
pycharm: 2022.4
Anaconda3 2022.10
termcolor: 2.1.1
問題
サードパーティ製のtermcolorの最新版をインストールし、runさせたら、色の付いたテキストがコンソールに出力されなかった。

ターミナル上で、python code1.pyと打つと色の付いたテキストが出ます。

解決方法
pip install termcolor==1.1.0
と打ってバージョンをダウングレードしたら上手く出力されました。

懸念点
但し、termcolor 2.1.1でもVSCodeではrunさせて上手くできたので気がかりです。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1