1、file => preferences =>setting
2、搜索python.pythonPath
3、設置workspace settings 中的python path為anaconda中的python命令的路徑
如
"/anaconda3/envs/mlbook/bin/python"
4、這樣我們打開一個py文件,就會自動切換到虛擬環境中
1、file => preferences =>setting
2、搜索python.pythonPath
3、設置workspace settings 中的python path為anaconda中的python命令的路徑
如
"/anaconda3/envs/mlbook/bin/python"
4、這樣我們打開一個py文件,就會自動切換到虛擬環境中
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。