Using file explorer locate C:\Users\username\miniconda3\shell\condabin. In the target bar try to find C:\Users\username\miniconda3\shell\condabin\conda-hook.ps1' PowerShell script (.ps1). This answer is dedicated to Windows 10/11 users, based on PowerShell VS Code integrated terminal, and assumes using miniconda but the same holds for conda under the previous environment.įrom the start menu type or search for Anaconda Powershell Prompt then right-click to open its file location. This error occurs every time I launch a terminal in VSCode (even if I don't have any python files present in my workspace), and it happens both when I launch VSCode from the launch button in Anaconda Navigator and when I launch VSCode by itself. I don't know if the second line of the error applies to me, but even if it did, I don't know how to change the command being called because it is done automatically by VSCode. It handles that command fine, but it doesn't solve my problem. I have tried running conda init bash and conda init -all both inside the VSCode terminal, and inside Git Bash. If using 'conda activate' from a batch script, change your The second of these commands gives the following error: CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. ![]() When I open a new terminal in VSCode, it immediately runs the following commands: C:/Users/ethan/AppData/Local/Continuum/anaconda3/Scripts/activate My default terminal for VS Code is Git Bash. ![]() I have Anaconda and Visual Studio Code installed on my computer.
0 Comments
Leave a Reply. |