How to activate conda env in Visual Studio Code?

By admin, 11 十月, 2024

1. Open Visual Studio Code.  
2. Go to the Extensions tab (Ctrl+Shift+X) and install the Python extension.  
3. Go to File > Preferences > Settings.  
4. In the left pane, search for “conda”.  
5. In the right pane, search for “python.condaPath” and set the path to your Anaconda installation.  
6. In the left pane, search for “conda env”.  
7. In the right pane, search for “python.condaEnvFile” and set the path to your environment file.  
8. Finally, open the Command Palette (Ctrl+Shift+P) and select the Python: Select Interpreter command.  
9. Select the environment you would like to activate in Visual Studio Code.

 

Conda

We should to install packages in base. If there is conflict, remove packages in base.

cheatsheet

标签

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"

最新评论