栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

pycharm2022.1.4版关闭show plots in toolwindow报错“Can‘t find a usable init.tcl in the following director”

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

pycharm2022.1.4版关闭show plots in toolwindow报错“Can‘t find a usable init.tcl in the following director”

  • 问题
    首先,我是在虚拟环境下利用matplotlib画图的,但是显示的plot窗口是在sciview固定的,于是,为了独立显示polt窗口,因此按照以下步骤File->Settings->Tools->Python Scientific,取消Show plots in toolwindow选项;
    这时,再次运行程序的时候出现:

Can‘t find a usable init.tcl in the following director,This probably means that Tcl wasn‘t installed properly

然后再次勾上"Show plots in toolwindow"时,程序正常运行,不过plot图还是固定的。

  • 解决
  1. 把主环境中的tcl8.6整个文件夹复制到虚拟环境的tcl中
  2. 把主环境中的tk8.6整个文件夹复制到虚拟环境的tcl8.6中(我的是pytorch虚拟环境)

大功告成!!!


文字表达的可能不够清楚,请见谅,下次补上错误图和解决问题图,图文并茂

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1026032.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号