16 Comments
Feb 26Liked by Bite Code!

I have a few questions. (beginner so maybe I am asking the wrong questions)

What's the point of setuptools and the other packages on the Ubuntu installation? Are these packages automatically included in the windows installation? I don't see them in my windows python install. Also, why python3-setuptools and not a version specific python3.11-setup tools?

When I look at the docs for something like setuptools they seem to recommend using pip to install it. Is it a bad idea to use pip to install these? Would it be advantageous to have it specific to a virtual environment?

I appreciate your guides. Especially the ones about setting up python virtual environments.

Expand full comment
Jan 31Liked by Bite Code!

I appreciate how clearly you've outlined your recommendations here. Could you say a bit more, or have you said more elsewhere, about this point you make: "Macs come with Python preinstalled, but I strongly advise that you install one version from python.org and don't use the one that is provided with your OS. Indeed, like the Python on Homebrew, it's not designed to be used by you, but as a system dependency."

What do you mean it's not designed to be used by the user? If it's not designed to be used by the user, then what processes are supposed to use it and what should the user expect from it?

In particular, I notice that if I do `pip3 list --user` I see a lot of packages. I don't remember if I installed those myself manually. Perhaps I did, and should not have done so according to your advice. But now I'm wondering if it's the case that other, normally functioning applications would be expected to install packages there.

Expand full comment
Oct 31, 2023·edited Oct 31, 2023

I've followed your install instructions as closely as possible (looks like the installer layout may have changed very slightly) and everything is going well. I also followed all the instructions on setting up virtual environments from your other article.

When I activate an environment then install a package with pip, I get a notice saying "A new release of pip is available: 23.2.1 -> 23.3.1" then on the next line "To update, run: python.exe -m pip install --upgrade pip". This works just fine, but it only upgrades pip for that virtual environment. Is there a way to upgrade pip so that newly created environments "inherit" the newest version of pip when they are created? "Inherit" probably isn't the right term but hopefully it makes the point.

Expand full comment
Jun 29, 2023·edited Jun 29, 2023

> If you see "No files for this release" instead of download links, move to the next bugfix release. E.G.: if "3.10.10" doesn't have any download link, go to "3.10.9". Repeat until you find one with download links.

I don't like the advice to skip the latest patch version if it doesn't have binaries. The patch versions often (almost always) have security fixes. Right now, only 3.10.11 has a binary installer even though 3.10.12 has fixes for a number of security issues. Once releases start coming out without binaries, I would just move on to the next version.

For more on the Python release cycle, see https://peps.python.org/pep-0602/. TL;DR binaries and "full support" are only for the first 1.5 years after a minor release.

Expand full comment

Struggling here, I nuked as many python installs as I could, including anaconda since everything was broken. But homebrew is still there & seems to be the default, even after following the above. For example 'which python3.10' returns the below in my terminal:

/opt/homebrew/bin/python3.10

What do I need to do here to use the python.org version?

Expand full comment

Thanks so much for this post - If I have a wild mix of python installations (from homebrew, miniconda and who knows else), does it make sense to clean them up?

Expand full comment

Hello, thank you for your blog post. What is the way of adding more python versions to "py launcher", just download the installer of a different version and it will apper in list-paths?

Expand full comment