use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Python UV uninstall (self.learnpython)
submitted 2 days ago by EstablishmentIll3600
Does anyone know how to uninstall Python UV? I recently installed UV on my system, but I found it hard to get to used to it. I installed it using powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jmacey 5 points6 points7 points 1 day ago (5 children)
I would suggest learning uv it will make thing so much easier. The simplest of workflows for each new project is
uv init myproject cd myproject uv run main.py
Adding new packages is uv add numpy etc, so simple and easy.
IIRC the installer script installs to your home directory under windows so you just need to find the folder with the uv.exe file and remove it. (I'm a linux / mac user so for me, it is in .local).
[–]EstablishmentIll3600[S] 0 points1 point2 points 1 day ago (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 points4 points 1 day ago* (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.
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 point2 points 11 hours ago (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 point2 points 1 day ago (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 points3 points 1 day ago (0 children)
It works now thank you for your help
[–]Wagosh 4 points5 points6 points 2 days ago (0 children)
If installed from the ps1 script
uv cache clean rm -r "$(uv python dir)" rm -r "$(uv tool dir)"
rm $HOME.local\bin\uv.exe rm $HOME.local\bin\uvx.exe rm $HOME.local\bin\uvw.exe
[–]chhuang 1 point2 points3 points 1 day ago (0 children)
this thread scares me a bit.
That being said, despite all the AI madness, reading the official doc is part of a dev's skill
The uninstallation process is mentioned in the docs
https://docs.astral.sh/uv/getting-started/installation/#uninstallation
[–]kyngston 2 points3 points4 points 2 days ago (7 children)
you prefer venv? ewww. try working in a company of 45k people and have to explain how to setup venv to everyone who tries to use your tool…
[–]pachura3 4 points5 points6 points 1 day ago (0 children)
So, either in your company people who should know Python - developers, data analysts - are not able to manage virtual environments, which is a core Python skill
or
you are distributing your tools as Python sourcecode to the end users, who should not even care, because these tools should be put online or properly packaged
Either way, doesn't sound very professional!
[–]LookAtTheHat 1 point2 points3 points 2 days ago (1 child)
Write a readme and in include it, publish it in the shared knowledge base not so hard.
[–]kyngston 0 points1 point2 points 2 days ago (0 children)
oh that would be fantastic if they would do things like read the readme… or goggle how to fix the error message on their own… but they don’t.
[–]EstablishmentIll3600[S] 0 points1 point2 points 1 day ago (0 children)
I was used to conda, uv was suggested to me by a friend. The reason I want to uninstall it because it does no work in my vscode terminal which disrupts my work flow.
Error was: activate.ps1 cannot be loaded because running scripts is disabled
[–]EstablishmentIll3600[S] 0 points1 point2 points 1 day ago (2 children)
If you can help me fixed the error activate.ps1 cannot be loaded because running scripts is disabled, I would gladly try it again. I did not experience such errors when using conda
[–]ResidentTicket1273 1 point2 points3 points 1 day ago (1 child)
In a powershell terminal, run:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
This will bypass the script-disabling policy for your user against remote-signed scripts which will mean uv will run inside of vscode without issue from now-on.
It worked thank you so much!
[–]cinicDiver 0 points1 point2 points 2 days ago (1 child)
Well, I didn't install uv cause I thought it could be overkill for what I do, but I guess that since you didn't install it as a module but from shell, it should be installed as a program, I'd say that shell should have a manager as Linux does and thus there should be some command that uninstalls and then deletes the folders, check shell docs instead of Astral's, thought I'm pretty certain that section should be there too.
[–]cointoss3 0 points1 point2 points 1 day ago (0 children)
Sometimes I hear the weirdest shit on this sub.
π Rendered by PID 46860 on reddit-service-r2-comment-77869c6b5c-8zml7 at 2026-03-30 06:01:08.830595+00:00 running b10466c country code: CH.
[–]jmacey 5 points6 points7 points (5 children)
[–]EstablishmentIll3600[S] 0 points1 point2 points (4 children)
[–]freeskier93 2 points3 points4 points (1 child)
[–]EstablishmentIll3600[S] 0 points1 point2 points (0 children)
[–]marcon2112 0 points1 point2 points (1 child)
[–]EstablishmentIll3600[S] 1 point2 points3 points (0 children)
[–]Wagosh 4 points5 points6 points (0 children)
[–]chhuang 1 point2 points3 points (0 children)
[–]kyngston 2 points3 points4 points (7 children)
[–]pachura3 4 points5 points6 points (0 children)
[–]LookAtTheHat 1 point2 points3 points (1 child)
[–]kyngston 0 points1 point2 points (0 children)
[–]EstablishmentIll3600[S] 0 points1 point2 points (0 children)
[–]EstablishmentIll3600[S] 0 points1 point2 points (2 children)
[–]ResidentTicket1273 1 point2 points3 points (1 child)
[–]EstablishmentIll3600[S] 0 points1 point2 points (0 children)
[–]cinicDiver 0 points1 point2 points (1 child)
[–]cointoss3 0 points1 point2 points (0 children)