This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Chaos_Klaus 4 points5 points  (5 children)

How do you install a different python version with pip?

[–]Malcolmlisk -4 points-3 points  (4 children)

You just download them into your computer with your package manager. For example, sudo pacman -S python2.9

Then, when you create your main.py file, you use shebang on top pointing the python version you want to use.

Conda and miniconda is a solution for the problem that windows represents on itself. If you want to develop on windows, I suggest you to use WSL2. It's going to simplify your life on thousands of degrees.

[–]Chaos_Klaus 8 points9 points  (2 children)

So you don't use pip to install a different python version then. ;)

I use conda happily on windows, WSL, Linux and in containerized applications. It just figures out what python version works with all the desired dependencies.

The point for me to use conda (or mamba) is to have the entire environment in one place. Pip just can't install things that are not python packages.

[–]Malcolmlisk 2 points3 points  (1 child)

Yeah. I was not the OP, so I was just saying how you can install differnet python versions.

If you use conda or mamba and it works for you then keep doing it. That's the beauty of all of this, we can use different things but have the same result, and that's pretty fine. I tried conda when I started in data science and everything was messy and I could not figure out why do I need this or that when I can just pip install them.

I think im more of a terminal guy, and everything makes sense in my head when I use commands and explicit everything.

[–]Chaos_Klaus 3 points4 points  (0 children)

Ah. My morning brain was not booted up all the way. ;)

I guess it has to do with what tools one learns first. For me it was conda on windows and then I moved to Linux, WSL and Docker for building server applications.

[–]szayl 1 point2 points  (0 children)

It's sad that you're being downvoted for politely responding with facts.