请教: 如何将 Sublime Text 2 的 python 解释器绑定为系统当前正在使用的 python 解释器,并能用里面装的所有库?因为。。。。。

2012-12-01 03:16:12 +08:00
 Hualin
因为,最近装了个插件 REPL,可以把 subl 的文本编程互动的命令行,我想在里面打开 iPython,但她返回了一个错,说找不到 IPython 的这个模块,当然,我在系统里装了 IPython。可是 subl 自带 Python 解释器,有自己的环境。所以。。。。。。。

系统:Mac,后来用了 Macports,但是在装 Macports 之前装过 Python 和 模块 Numpy。后来我 select 了。也不知道过去的到哪里去了。

然后我在 subl 的 python 命令行下 import numpy 是有的,但没有我常用的 matplotlib 和 scipy,说明 subl 是可以用系统的 Python 的,但不是 macports 的。。。。

求回复啊 嗷嗷嗷 ORZ
3888 次点击
所在节点    Python
1 条回复
freewizard
2012-12-02 00:38:53 +08:00
提问之前最好先看看文档

https://github.com/wuub/SublimeREPL

FAQ
1. Is this a terminal emulator?

No. Shell (cmd.exe/bash) REPL can be used for simple tasks (file creation, git init etc.) but anything terminal like (mc, ipython, vim) will not work! SublimeREPL has a sister project: SublimePTY that aims to bring real terminal emulator to SublimeText2.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/53797

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX