久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何使用 Anaconda 的解釋器設置 SublimeREPL?

How Do I Setup SublimeREPL with Anaconda#39;s interpreter?(如何使用 Anaconda 的解釋器設置 SublimeREPL?)
本文介紹了如何使用 Anaconda 的解釋器設置 SublimeREPL?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我喜歡 Sublimetext 中的 Python,但我真正需要的是用于數據探索的交互模式.但是,對于我的生活,我無法讓 SublimeREPL 使用 Anaconda 的解釋器.任何想法將不勝感激.

I love Python in Sublimetext, but what I really need is an interactive mode for data exploration. However, for the life of me I cannot get SublimeREPL to use Anaconda's interpreter. Any ideas would be appreciated.

我已將以下內容添加到我的 SublimeREPL.settings.user 文件中,但沒有任何效果:

I have added the following to my SublimeREPL.settings.user file, but it doesn't have any effect:

{
    "default_extend_env": {"PATH": "Users/anton/anaconda/envs/py3k/bin/python3:{PATH}"}
}

推薦答案

在你的 Packages/User 文件夾中,創建 SublimeREPL/config/Python/Main.sublime-menu內容如下:

In your Packages/User folder, create SublimeREPL/config/Python/Main.sublime-menu with the following contents:

[
    {
        "id": "tools",
        "children":
        [{
            "caption": "SublimeREPL",
            "mnemonic": "r",
            "id": "SublimeREPL",
            "children":
            [
                {
                    "caption": "Python",
                    "id": "Python",

                    "children":[
                        {
                            "command": "repl_open",
                            "caption": "Python - Anaconda",
                            "id": "repl_python",
                            "mnemonic": "p",
                            "args": {
                                "type": "subprocess",
                                "encoding": "utf8",
                                "cmd": ["/path/to/Anaconda/python", "-i", "-u"],
                                "cwd": "$file_path",
                                "syntax": "Packages/Python/Python.tmLanguage",
                                "external_id": "python",
                                "extend_env": {"PYTHONIOENCODING": "utf-8"}
                            }
                        },
                        {
                            "command": "repl_open",
                            "caption": "IPython - Anaconda",
                            "id": "repl_python_ipython",
                            "mnemonic": "p",
                            "args": {
                                "type": "subprocess",
                                "encoding": "utf8",
                                "autocomplete_server": true,
                                "cmd": ["/path/to/Anaconda/python", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"],
                                "cwd": "$file_path",
                                "syntax": "Packages/Python/Python.tmLanguage",
                                "external_id": "python",
                                "extend_env": {
                                    "PYTHONIOENCODING": "utf-8",
                                    "SUBLIMEREPL_EDITOR": "$editor"
                                }
                            }
                        }
                    ]
                }
            ]
        }]
    }
]

"cmd" 行中,將 /path/to/Anaconda/python 更改為您要使用的 Python 可執行文件的實際路徑.如果您使用的是 Windows,請使用單個 / 作為路徑分隔符,或使用雙 \:

In the "cmd" lines, change /path/to/Anaconda/python with the actual path to your python executable you want to use. If you're on Windows, either use a single / as path delimiter, or double \:

c:/Anaconda/bin/python.exe
# or
c:\Anaconda\bin\python.exe

保存文件,你現在應該有 Tools ->崇高REPL->蟒蛇->Python - AnacondaIPython - Anaconda 菜單選項用于使用 Anaconda 解釋器啟動 REPL.如果您安裝了多個 Python 版本(例如,2.7 和 3.3),您只需復制 children 內容并更改 captioncmd適當的路徑.

Save the file, and you should now have Tools -> SublimeREPL -> Python -> Python - Anaconda and IPython - Anaconda menu options to start REPLs with the Anaconda interpreter. If you have multiple versions of Python installed (for example, 2.7 and 3.3) you can just duplicate the children contents and alter the caption and cmd paths appropriately.

這篇關于如何使用 Anaconda 的解釋器設置 SublimeREPL?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Troubles while parsing with python very large xml file(使用 python 解析非常大的 xml 文件時出現問題)
Find all nodes by attribute in XML using Python 2(使用 Python 2 在 XML 中按屬性查找所有節點)
Python - How to parse xml response and store a elements value in a variable?(Python - 如何解析 xml 響應并將元素值存儲在變量中?)
How to get XML tag value in Python(如何在 Python 中獲取 XML 標記值)
How to correctly parse utf-8 xml with ElementTree?(如何使用 ElementTree 正確解析 utf-8 xml?)
Parse XML from URL into python object(將 XML 從 URL 解析為 python 對象)
主站蜘蛛池模板: 国产福利91精品一区二区三区 | 国产精品亚洲精品 | 欧美性大战久久久久久久蜜臀 | 色婷婷久久久亚洲一区二区三区 | 日本一区二区三区在线观看 | 黄色网址免费在线观看 | 日韩精品一区二区三区 | 中文字幕日韩一区 | 三级在线观看 | 久久久一区二区 | 久久久精品视频一区二区三区 | 国产激情视频在线观看 | 男人天堂视频在线观看 | 欧美日一区 | 日韩欧美精品在线 | 日韩乱码在线 | 久久免费观看视频 | 免费在线毛片 | 免费成人在线网站 | 男人天堂网av | 久久五月婷 | 成人午夜在线观看 | 欧美日韩在线一区二区 | 激情五月婷婷丁香 | 亚洲国产精品一区二区第一页 | 午夜男人的天堂 | 亚洲精品久久久9婷婷中文字幕 | 成人老司机| 毛片一级片 | 在线成人免费观看 | 亚洲视频在线观看 | avhd101在线成人播放 | 日韩成人| 黄色毛片一级 | 在线一区二区观看 | 欧美精品福利 | 欧美黄色片在线观看 | 亚洲国产成人av好男人在线观看 | 亚洲一卡二卡 | 粉嫩国产精品一区二区在线观看 | 91视频一区二区三区 |