F
F
FOUREX2021-12-14 22:27:14
linux
FOUREX, 2021-12-14 22:27:14

How to uninstall python 3.8.10 from WSL?

I have installed WSL on my computer (Ubuntu) and I need to remove the Python3.8.10 pre-installed there. How to remove this or how to update this python to 3.9?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Karabanov, 2021-12-14
@FOUREX

No need to break the system by removing shaky Python or updating it.
Use pyenv (don't forget to install the libraries ).
To install pyenv curl https://pyenv.run | bash
Install Python pyenv install 3.9.9
Create a virualenv and work in it so as not to break the system.
And there is a win-win option - to run Python in Docker. But, since you have Windows, this is not available to you.

A
Andrew, 2021-12-14
@deepblack

You don't need to remove the default python. Unless, of course, you want entertainment))
Look in the apt repositories for your distribution - if there is a necessary version, then install it from there.
If not, build from source, it's pretty easy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question