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.
评论