scoop安装的python找不到tcl

神秘实验要用python,然后运行报找不到init.tcl的问题

理论上tcl/tk是python内置的东西,不可能找不到
但确实是发生了这样的事情
我的python是scoop安装的,可能跟这个有关系

实际上,scoop安装的python是有这个东西的
[scoop目录]/apps/python/current/tcl里面
并且执行python -m tkinter不会报错
但貌似有些库搜索tcl不是在这个目录里面

所以我们添加两个软连接就可以了

# 自己替换下scoop目录
New-Item [scoop目录]\apps\python\current\Lib\tcl8.6 -ItemType Junction -Target [scoop目录]\apps\python\current\tcl\tcl8.6
New-Item [scoop目录]\apps\python\current\Lib\tk8.6 -ItemType Junction -Target [scoop目录]\apps\python\current\tcl\tk8.6