1. 程式人生 > >linux 安裝配置 sublime 進行 python 開發

linux 安裝配置 sublime 進行 python 開發

復制 eve tools cmd src 打開 技術 www sys

1. 下載sublime

地址:http://www.sublimetext.com/3

2. 解壓出來,將sublime_text_3 文件夾的名字改為 sublime_text ,

然後將 sublime_text/ 文件夾整個拷貝到 /opt 下面

sudo cp -r sublime_text/ /opt/

將 sublime_text.desktop 拷貝到 /usr/share/applications

sudo cp sublime_text.desktop /usr/shar/applications/

3. 找到Python3的安裝路徑

終端中輸入命令

type -a python3

可以看到結果

[email protected]:~$ type -a python3
python3 是 /usr/bin/python3

復制一下這個路徑。

4. 配置Sublime

打開Sublime->Tools->build system->new build system

技術分享圖片

出現:
"shell_cmd": "make"

將 make 用 python 的路徑替換掉保存就可以了。

OK 收工!

linux 安裝配置 sublime 進行 python 開發