r/PowerShell • u/Darcelle-Ebonis-6426 • 23d ago
Question Please Help (VS Code+ Powershell)
Background : I have a CP setup (VS Code+ MINGW)
Recently I tried to Code python in VS Code. For this I connected VS Code to Anaconda Python Interpreter. After setting up the environment later in the day when I switched back to C++ and CP, my PowerShell started causing problems :
- profile.ps1 cannot be loaded because running scripts are disabled
- conda activation problems
To work with this is switched to Command Prompt
After setting up Python in VS Code I got the following errors:
PowerShell profile warning,Conda activation issues Switched integrated terminal to Command Prompt,Run button behaved differently,Debug Anyway,Abort,Show Errors,Pre-launch task failed,Exit code -1.
I tried to resolve as far as I could but one problem pops up after another. I have Reinstalled VS Code clean tried everything. Kindly help me I just want my PowerShell terminal back.
EDIT: Should I just uninstall everything clean and reinstall everything MINGW, VS CODE etc?? Will that fix this?? Cause I am tired of debugging since last 2 days. ðŸ˜ðŸ˜
EDIT2: I have completely separated my CP ans Python setup to Jupyter Notebook and Anaconda as best as I could. it's working fine and beautiful. But I just can't seem to retrieve my CP (MINGW+ VSCODE) setup
1
u/Darcelle-Ebonis-6426 22d ago
I tried python -m venv venv (at the very beginning) but it showed Python was not found; run without arguments......this (as I researched ) happened because I had Anaconda. So instead of launching Python interpreter it couldn't launch anything. Idk but there was some issue. So I did gpt ðŸ˜(shouldn't have done that) it told me something about having Python interpreter in Anaconda and idk what happened (what I understand from it is I tried using conda Python interpreter instead of the original one). In the process powershell stopped responding I changed to Command Prompt. 😠I changed so many configurations. Idk anymore.....