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

如何更改 Sublime text 3 中的默認 Python 解釋器

How to change the default Python interpreter in Sublime text 3(如何更改 Sublime text 3 中的默認 Python 解釋器)
本文介紹了如何更改 Sublime text 3 中的默認 Python 解釋器的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我目前正在為我的項目使用 Anaconda python 發行版(不是 anaconda 插件,它們具有相同的名稱,但我使用的一個包括 Numpy、IPython 等.這有點令人困惑).所以我想將默認的python(v3.3)更改為Anaconda(v2.7.6)中的python,在這種情況下我將能夠使用嵌入在Anaconda中的庫.我試圖在 Tool > Build System > New Build System 下放置一個新腳本.

I am currently using the Anaconda python distribution for my project (NOT the anaconda plugin, they have the same name, but the one I am using includes Numpy, IPython, etc. It is kinda confusing). So I want to change the default python (v3.3) to the one in Anaconda (v2.7.6), in that case I will be able to use the libraries embedded in Anaconda. I tried to put a new script under Tool > Build System > New Build System.

{
"path": "/home/username/anaconda/bin",
"cmd": ["python", "-u", "$file"],
"file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
"selector": "source.python"
}

但是失敗了,sublime還在使用默認解釋器:

But it failed, the sublime is still using the default interpreter:

>>>print (sys.version)
3.3.0 (default, Jun 12 2013, 17:01:35) 
[GCC 4.7.2]
>>> print (sys.executable)
python3
>>> print (sys.path)
['/opt/sublime_text', '/opt/sublime_text/python3.3.zip', '/home/username/.config/sublime-text-3/Packages']

所以我的問題很簡單(但對于不知道的人來說已經夠難了):如何將此默認 python 解釋器更改為我想要的解釋器;

So my question is quite simple (but hard enough for one who doesn't know): How to change this default python interpreter to the one I want;

推薦答案

你可以通過區分python的名字來讓它工作.

You can get it working by distinguishing the name of python.

例如改變

C:Python27python.exe 

C:Python27python2.exe

更改您的環境變量以引用此更改.在 cmd 中輸入 python2 以確認它的工作.

Change your environment variables to reference this change. Type python2 in cmd to confirm its working.

然后你應該能夠從你的構建熱鍵中引用它.

And then you should be able to reference this from your build hotkey.

{
"path": "/home/username/anaconda/bin",
"cmd": ["python2", "-u", "$file"],
"file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
"selector": "source.python"
}

這篇關于如何更改 Sublime text 3 中的默認 Python 解釋器的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

How to install Selenium in a conda environment?(如何在 conda 環境中安裝 Selenium?)
get the CUDA and CUDNN version on windows with Anaconda installe(使用 Anaconda installe 在 Windows 上獲取 CUDA 和 CUDNN 版本)
How can I download Anaconda for python 3.6(如何下載適用于 python 3.6 的 Anaconda)
Using two different Python Distributions(使用兩個不同的 Python 發行版)
How can I install Anaconda aside an existing pyenv installation on OSX?(除了 OSX 上現有的 pyenv 安裝之外,如何安裝 Anaconda?)
Permanently set Python path for Anaconda within Cygwin(在 Cygwin 中為 Anaconda 永久設置 Python 路徑)
主站蜘蛛池模板: 久久久久久久av | 国产一区二区精华 | 亚洲三级在线 | 国产成人综合在线 | 久久久久国产 | 一级毛片免费完整视频 | 国产极品车模吞精高潮呻吟 | 精品国产伦一区二区三区观看方式 | 高清国产一区二区 | 国产成人精品一区二区三区在线 | www.亚洲视频.com | 国产乱码精品一区二三赶尸艳谈 | 亚洲综合无码一区二区 | 五月槐花香 | 国产玖玖 | 在线日韩视频 | 国产成人影院 | 国产一级视频在线播放 | 久久久美女 | 激情五月综合 | 91在线最新 | 黄色成人免费在线观看 | 日韩在线一区二区 | 久久久久国产一区二区三区 | 在线一区| 午夜精品久久久久久 | 亚洲精品久久久久中文字幕欢迎你 | 久久久五月天 | 亚洲精品国产第一综合99久久 | 国产91在线 | 亚洲 | 国产91在线 | 亚洲 | 午夜色播| 日韩精品久久一区 | 成人av鲁丝片一区二区小说 | 2019天天干天天操 | 麻豆hd | 亚洲国产一区二区视频 | 欧美日韩高清免费 | 午夜看片网站 | 欧美不卡视频一区发布 | 成人免费视频网站在线看 |