3、修改activite.bat文件:
set "TCL_LIBRARY=python安装目录\tcl\tcl8.5"
set "TK_LIBRARY=python安装目录\tcl\tk8.5"
方法三在pycharm虚拟环境下仍会报错,在shell下不会,解决pycharm问题仍需使用方法二。
原文链接:
https://blog.csdn.net/my_wings/article/details/106549584
文章目录1、参考2、问题追溯3、解决方案4、matplotlib backend4.1、backend配置方式4.2、backend列表
_
tkinter
.
Tcl
Error
: no
di
splay name and no $
DI
SPLAY environment variable解决办法
python
错误_
tkinter
.
Tcl
Error
: no
di
splay name and no $
DI
SPLAY environment variable 问题的解决
Traceback (most recent call last):
File ".\standardplot.py", line 5, in <module>
plt.plot(x, np.sin(x)) # Plot the sine of each x point
File "D:\workspace\
python
\HELLO\venv\lib\site-packages\matplotlib\pyplot...
在虚拟环境使用matplotlib报错两例:
_
tkinter
.
Tcl
Error
: Can’t find a
usable
init
.
tcl
in the
following
di
rec
tor
ies
:
解决方法:
首先,退出虚拟环境:deactivate.
然后输入pip3 -V,查看当前系统默认的
python
3的lib目录:
jmh@ubuntu:~$ pip3 -V
pip 21.0.1 from /root/anaconda3/lib/
python
3.6/site-packages/pip (pyth
Gtkwave Can't find a
usable
init
.
tcl
最近再使用Gtkwave查看波形的时候出现了一个错误,导致我的gtkwave界面无法打开,下面是报错信息:
GTKWave |
Tcl
_
Init
error
: Can't find a
usable
init
.
tcl
in the
following
di
rec
tor
ies
:
/tmp/pabuild/
tcl
8
pycharm报错:_
tkinter
.
Tcl
Error
: Can‘t find a
usable
init
.
tcl
in the
following
di
rec
tor
ies