V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
gobetago
V2EX  ›  Python

如何使用 Homebrew 解决 Python3 Idle 无法输入中文的问题?

  •  
  •   gobetago · 2018-12-25 14:52:27 +08:00 · 2194 次点击
    这是一个创建于 1920 天前的主题,其中的信息可能已经有所发展或是发生改变。
    打开 python 自带的 idle 提示 WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable.

    网上找到的答案是 TCL-TK 版本不对应,查询 mac 上的版本后发现 brew 里的 TCK-Tk 版本是 8.6.8,但 Idle 里的显示的 TK 版本依然是 8.5.9

    解决方法是重装 python3

    brew reinstall python3 --with-tcl-tk 后 提示 Error: invalid option: --with-tcl-tk

    无法解决。
    1 条回复    2018-12-25 15:45:54 +08:00
    ClutchBear
        1
    ClutchBear  
       2018-12-25 15:45:54 +08:00
    用这个 idle 干啥呢
    终端直接输入 python 就是.

    想用类似的还有一个更好的 ipython,
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1261 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:56 · PVG 01:56 · LAX 10:56 · JFK 13:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.