隨筆

The journal of an avid computer user.

12月 10, 2021

VSCode not finding conda environments

 

The best option I found is to set the python. venvPath parameter in vscode settings to your 
anaconda envs folder. 
8 
"python . venvPath": "/Users/[... ]/Anaconda3/envs" 
Then if you bring up the command palette (Ctl + shift + P on windows/linux, cad + shift + 
P on mac) and type Python: select workspace Interpreter all your envs will show up and you 
can select which env to use. 
The python extension will also need to be installed for the Select Workspace Interpreter option. 
Note: The Select Workspace Interpreter takes around 10 seconds to come up on my computer 
using the current version of VSCode.

18

The best option I found is to set the python.venvPath parameter in vscode settings to your anaconda envs folder.

 

"python.venvPath": "/Users/[...]/Anaconda3/envs"

 

From <https://stackoverflow.com/questions/43351596/activating-anaconda-environment-in-vscode> 

Find conda env location by "conda info"

張貼者: 我 於 晚上9:53 沒有留言:
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest
較新的文章 較舊的文章 首頁
訂閱: 文章 (Atom)

關於我自己

我的相片
GitHub: ICHx
檢視我的完整簡介

網誌存檔

  • ►  2022 (3)
    • ►  3月 (1)
    • ►  2月 (1)
    • ►  1月 (1)
  • ▼  2021 (21)
    • ▼  12月 (1)
      • VSCode not finding conda environments
    • ►  11月 (1)
    • ►  8月 (3)
    • ►  7月 (6)
    • ►  6月 (4)
    • ►  4月 (5)
    • ►  2月 (1)
  • ►  2020 (4)
    • ►  10月 (1)
    • ►  8月 (1)
    • ►  7月 (1)
    • ►  5月 (1)
  • ►  2019 (1)
    • ►  9月 (1)
  • ►  2017 (7)
    • ►  12月 (1)
    • ►  11月 (2)
    • ►  8月 (2)
    • ►  3月 (2)
  • ►  2016 (4)
    • ►  10月 (3)
    • ►  8月 (1)
頂尖企業主題. 主題圖片來源:mayo5. 技術提供:Blogger.