简体   繁体   English

在 Mac OS 12.6 上为 latex 设置 Textmate

[英]setting up Textmate for latex on Mac OS 12.6

I believe my question is similar to the following question---but I'm unsure what to do: python and textmate我相信我的问题类似于以下问题---但我不确定该怎么做: python 和 textmate

I am trying to set up textmate to use on a new Mac OS 12.6.我正在尝试设置 textmate 以在新的 Mac OS 12.6 上使用。 One key step is to go to Bundle, Preferences, and change settings there.一个关键步骤是到 go 到 Bundle、Preferences 并在那里更改设置。 However, when I do this, I get the following error:但是,当我这样做时,出现以下错误:

Preferences…: /Users/amfriede/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/configure.py: /usr/bin/python: bad interpreter: No such file or directory首选项...:/Users/amfriede/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/configure.py:/usr/bin/python:错误的解释器:没有这样的文件或目录

I gather from the other answer that I am supposed to download Python 3 (done.) and somehow redirect TextMate to python 3 (that now sits in an applications folder), However.我从另一个答案中了解到,我应该下载 Python 3(完成。)并以某种方式将 TextMate 重定向到 python 3(现在位于应用程序文件夹中),但是。 I'm a bit sketchy on how to do this last step.我对如何执行最后一步有点粗略。

Here is what I learned:这是我学到的:

  1. Download and install Python 3 ( https://www.python.org/downloads/ )下载并安装 Python 3 ( https://www.python.org/downloads/ )

  2. In terminal type: /usr/bin/python3 -m pip install pyobjc --user在终端类型中:/usr/bin/python3 -m pip install pyobjc --user

  3. In terminal type: cd ~/Library/Application\在终端类型中:cd ~/Library/Application\

  4. In terminal type: ls This last step will list a bunch of things of the form xx.py.在终端输入:ls 这最后一步将列出一堆 xx.py 形式的东西。 For each one, type mate xx.py a file opens and there you change python to python3, save, close, go on to the next.对于每一个,键入 mate xx.py 一个文件打开,在那里你将 python 更改为 python3,保存,关闭,go 到下一个。 Once you have gone through every file of the form xx.py, you can proceed to set up Textmate for latex as you normally would.浏览完 xx.py 形式的每个文件后,您可以像往常一样继续为 latex 设置 Textmate。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM