2017-04-01 23 views

回答

0

默認情況下,蟒蛇使用Python解釋器在您PATH 環境變量,最重要的配置選項是 python_interpreter選項,允許用戶使用不同的 Python解釋器,例如,一個駐留在虛擬環境 :

所以檢查sublime3配置,並確保Python解釋是正確的:

例如

{ 
    "font_face": "Monaco", 
    "font_size": 11, 
    "python_interpreter": "/Users/**/venv/bin/python" 
} 

enter image description here

見從anaconda settings更多細節。

+0

謝謝,這真是太神奇了。我的配置是「python_interpreter」:「python」,但我不知道什麼是正確的路徑。 –

+0

「/ Users/**/venv/bin/python」是什麼意思? –

+0

@周俊佐這是Python解釋器的路徑。看看[查找Python解釋器的完整路徑](http://stackoverflow.com/questions/2589711/find-full-path-of-the-python-口譯員) – McGrady

相關問題