sublime text3下python3的配置__python

來源:互聯網
上載者:User

環境windows10:
第一步:下載python3 任意版本 並添加到環境變數中(這裡不會的百度)

第二步: 開啟cmd 輸入python,如果出來 則安裝成功

Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.

第三步:進入編譯系統中的new build system,然後會出現一個空的編譯檔案

第四步:在編譯檔案中輸入

{ "cmd": ["C:/Users/acer/AppData/Local/Programs/Python/Python35/python3.exe", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python", "encoding": "utf-8", "env": {"PYTHONIOENCODING": "utf-8"} }

注意。。。 安裝路徑那裡 填你的安裝路徑。。。 你的。。 還有注意”/”與”\” 還有每一行後面都有一個”,” 。。
如果同時有python2與python3的話 最好在安裝路徑裡把一個改名成python2.exe一個改成python3.exe
後面兩行是為了能輸出中文字元。

第五步: 建立一個檔案,並儲存為.py格式,輸入print(“hello world!”);
然後ctrl+b試試吧 。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.