Set Python 3 as default in Ubuntu 20.04 LTS Focal Fossa
As you might know, starting from Ubuntu 20.04 LTS, Python 2 is no longer a dependency and not installed by default anymore. However, there are still some caveats:
- When installing Python using
apt install pythonit will still install Python 2
- When upgrading from an older Ubuntu version,
pythonwill still point to Python 2
The fix is simple: install the
sudo apt install python-is-python3
After installing this package, running
apt install python will give you Python 3 and if you had already installed Python,
python will now actually point to Python 3.
Finally, no more Python 2!
Python has been the most popular programming language for years, but despite this dependency management has been a weak spot for a long time as well. Pipenv was (and is) a good attempt to fix this, but in late 2019 Poetry 1.0 was released and it is very good. Seriously, give it a try. There is a small problem though: Poetry uses venv for installing dependencies: when you add dependencies to a Poetry Python project, a new virtual environment is created where the dependencies are installed. Howev
Mon May 11 2020
Windows Subsystem for Linux doesn't come with a Linux kernel (which WSL2 will do), which means that Docker won't work. In this article, I will explain my own personal setup that makes Docker work on WSL flawlessly by using a VirtualBox virtual machine.
Tue Aug 13 2019