在Windows上为Python3安装tkinter模块
文章目录
- 按
- 操作步骤
1. 按
运行
pip install tkinter
会提示
ERROR: Could not find a version that satisfies the requirement tkinter (from versions: none)
ERROR: No matching distribution found for tkinter
我们可以选择在安装Python3时进行勾选安装tkinter模块
2. 操作步骤
- 下载Python3的安装包,我下的时Python3.8.6
- 可以先勾选将Python添加到环境变量中的PATH里,然后点击自定义安装(Customize installation)
- 勾选
td/tk and IDLE
即可 - 其他安装步骤可参考:Python3安装教程
还没有评论,来说两句吧...