However I don't think manually adding anything to the path is a desirable and robust solution. As pointed out in answer, it might be some issue with the path, so that Pycharm can't find the switch backend module when it is called by the Pycharm scripts in your Traceback. The 'switch backend' utility seems to be a new feature according to the release notes of matplotlib. The error is evidently on the Pycharm side, as indicated by the traceback and by the fact that importing matplotlib via the anaconda prompt or spyder IDE does not produce this error. I encountered the same error using Python 3.6 with 3.0.0 Matplotlib and P圜harm 2018.2.4. This will allow you to run/debug, but you'll still get those errors if you use the interactive console.Īs a side note, P圜harm has a history of lagging behind matplotlib API changes, so this should be your first guess next time. It's fixed in P圜harm 2018.3, so the easiest solution is to upgrade P圜harm.Īlternative workarounds are downgrading matplotlib, or unchecking "run with python console" in the run configuration: Like wrote, this is a bug in P圜harm side, you can see the bug report here.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |