在Mac OS 10.15.3(Catalina)和pyenv上使用Python 3.8.0
当我尝试运行文件时,它会返回:
ModuleNotFoundError: No module named '_tkinter'
我试过了。我有点担心,因为我在pyenv之上运行python,任何第三方tkinter模块都无法正常运行
运行brew doctor
返回:
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
`/Users/jm/.pyenv/shims/python3.7-config
/Users/jm/.pyenv/shims/python3.7m-config
/Users/jm/.pyenv/shims/python-config
/Users/jm/.pyenv/shims/python3-config
/Users/jm/.pyenv/shims/python3.8-config`
尝试使用pip3它在我的pip3安装tk中工作
您应该安装
tkinter
。要在控制台上安装tkinter
,请编写以下命令:在尝试了一系列事情之后,它最终是这样工作的:
相关问题 更多 >
编程相关推荐