How virtual environments work in Python

By | February 6, 2025

In Python there are generally 2 options for creating virtual environments. (Virtual environments are a must by the way so I won’t go into the pros and cons. Trust me and just use it). venv Firstly, there is venv which is shipped with Python so you can think of it as a standard library. virtualenv… Read More »

How to install Python on MacOS

By | February 5, 2025

Installing pyenv (brew install pyenv) The first step is to install pyenv which is Python’s version management system. You can read more about where it came from and what it does here but in a nutshell, it is a project that was forked from rbenv and ruby-build, and modified for Python and it let’s you change your… Read More »

Chrome on Raspberry Pi

By | October 19, 2024

On a Pi device, Chromium is installed by default on version 9 (Stretch) and above. To find the version run: To update the browser version run: What apt does is inspects /etc/apt/sources.list.d/raspi.list and uses the repo there to search for binary packages to install. For example: http://archive.raspberrypi.org/debian/dists/bullseye/main/binary-arm64/Packages contains the link to the Chromium browswer

How to get Django working on PythonAnywhere

By | October 3, 2024

First you want to follow part 1 of this tutorial to get Django installed: https://help.pythonanywhere.com/pages/FollowingTheDjangoTutorial/ Half way through you’ll want to jump to: https://docs.djangoproject.com/en/4.1/intro/tutorial01/ which essentially tells you to run: Once this is done, you can either go to: