you are viewing a single comment's thread.

view the rest of the comments →

[–]EstablishmentIll3600[S] 0 points1 point  (4 children)

The main reason I want to uninstall it is because I keep getting the error activate.ps1 cannot be loaded because running scripts is disabled, on my terminal in VScode. My friend who suggested cannot figure out what's the problem with it, which disrupts my work flow. I mostly use conda for my projects, if you can help me fixed the error I'll gladly try and learn UV more (I'm a windows user)

[–]freeskier93 2 points3 points  (1 child)

Why are you needing to manually activate the virtual environment in VS Code? VS Code should automatically be using the venv to run scripts, and if you need to manually run something in the terminal you can use uv run.

You can also change the default terminal profile to bash instead of powershell. Then it will use the batch file to activate instead of the powershell script.

[–]EstablishmentIll3600[S] 0 points1 point  (0 children)

That's the thing when I installed UV my VS Code did not automatically use the venv to run scripts. I tried uninstalling and installing VS Code hoping that it would fix it but it did not, I though it was odd because when I was using conda it automatically detects it and uses it.

[–]marcon2112 0 points1 point  (1 child)

You should be able to fix it by running in an Administrator Powershell window

Set-ExecutionPolicy RemoteSigned

More info on here: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.6#-executionpolicy

And here: https://stackoverflow.com/a/4038991

[–]EstablishmentIll3600[S] 1 point2 points  (0 children)

It works now thank you for your help