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
Hualin
V2EX  ›  Python

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

  •  
  •   Hualin · 2012-12-01 03:16:12 +08:00 · 3874 次点击
    这是一个创建于 4178 天前的主题,其中的信息可能已经有所发展或是发生改变。
    因为,最近装了个插件 REPL,可以把 subl 的文本编程互动的命令行,我想在里面打开 iPython,但她返回了一个错,说找不到 IPython 的这个模块,当然,我在系统里装了 IPython。可是 subl 自带 Python 解释器,有自己的环境。所以。。。。。。。

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

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

    求回复啊 嗷嗷嗷 ORZ
    1 条回复    1970-01-01 08:00:00 +08:00
    freewizard
        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.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3086 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:56 · PVG 20:56 · LAX 05:56 · JFK 08:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.