以下の内容はhttps://paper.hatenadiary.jp/entry/2024/02/14/194637より取得しました。


【エラー解決】OSError: 'seaborn-deep' is not a valid package style

エラー内容

PyPortfolioOptをインストールしてからサンプルコードを実行する際、以下のエラーが表示され実行できない。

OSError: 'seaborn-deep' is not a valid package style, path of style file, URL of style file, or library style name (library styles are listed in `style.available`)

使用しているmatplotlibのバージョンは3.8.0

解決方法

'seaborn-deep' が3.8.0で使用できなくなっているのが原因だった。matplotlibをアンインストールした上でpip install matplotlib==3.7.3として実行可能になった。




以上の内容はhttps://paper.hatenadiary.jp/entry/2024/02/14/194637より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14