Using Python 3.1 with TextMate

前端 未结 4 1228
旧巷少年郎
旧巷少年郎 2020-12-04 16:14

TextMate seems to use the built-in Python version I assume (sys.path doesn\'t work). How do you configure it to use 3.1 instead? I\'ve already installed the 3.1 package and

4条回答
  •  [愿得一人]
    2020-12-04 16:25

    According to this long thread (which was about Python 3.0, and the TextMate version existing back last spring, but I believe is still valid for Python 3.1 and today's TextMate), you can get it done (e.g. via @Ned's answer), but once you do many TextMate commands may well break (because they're written to use Python 2, and Python 3 is not backwards compatible with Python 2 -- for example, the use of reload, which disappeared in Python 3, is repeatedly mentioned in the thread). Still, it might work if you do not use or need much of TextMate's functionality (LaTeX typesetting for example was mentioned as something that totally breaks once you make TextMate use Python 3 instead of Python 2).

提交回复
热议问题