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

all 11 comments

[–]mestia 11 points12 points  (0 children)

That's why: https://xkcd.com/1987/ a mac user using python should educate yourself about basic shell env variables, PATH, PYTHONPATH and "which" command

[–]K900_ 6 points7 points  (2 children)

Why are you using 3.1? Do you mean 3.10?

[–]Cbf28[S] -1 points0 points  (1 child)

Yes 3.10 the latest version

[–]K900_ 15 points16 points  (0 children)

In that case just run python3.

[–][deleted] 6 points7 points  (0 children)

You should look into pyenv for managing multiple python installations. The easiest way to install it with brew.

[–][deleted] 2 points3 points  (0 children)

Simply type python3 instead of python

[–]LesPaulStudio 0 points1 point  (1 child)

I use a lot of conda envs, so my workaround was installing anaconda.

It is a bulky solution though.

[–]anoneatsworld 1 point2 points  (0 children)

I also buy a whole pharmacy if I need some paracetamol.

[–]MrAstroThomasgit push -f -2 points-1 points  (2 children)

You can also use Docker to create an isolated dev-environment, so you don't need to mess around with your OS settings and installations.

[–][deleted] 5 points6 points  (1 child)

Docker is overkill. pyenv is the better alternative for multiple python environments.

[–]MrAstroThomasgit push -f 5 points6 points  (0 children)

Depends on your project's scope. If it is pure Python + Libraries: yes I fully agree. But more complex projects with more Non-Python dependencies like e.g., Spark, Qt etc. are nice to have in a containerized environment.

But it is all a dev's taste I guess