Local Installation
UV
An increasingly popular way to get a working local Python copy, in addition to a proper package management tool, is by installing UV (the guide is available at this link). Then we can create a new virtual environment using the following command in the terminal (PowerShell/cmd in Windows and terminal in Mac/Linux):
uv venv my-env-name --python 3.13
where my-env-name will become the name of the environment and --python indicates the version of Python to be installed (see more here). Then, we can activate the environment with the command that is printed out after the uv venv command runs its course. Packages (that provide extra functionalities in an organized structure) can be promptly installed like
uv pip install numpy scipy matplotlib
(see here) (You need to activate the corresponding virtual environment first.) The main reason to purposely make a dedicated virtual environment is that we can have different package settings/versions localized for different project needs, which won’t interfere or conflict with each other.
Visual Studio Code
We may also like to have a versatile code editor (or so-called IDE) for convenience. A recommended option is Visual Studio Code (not to be confused with Visual Studio) which is readily available for download. Afterwards, we just need to further install the “Python” extension (extensions can be accessed by clicking the fourth button on the left sidebar) and then select the custom environment as the Python interpreter (at the bottom-right corner) to be used by VS Code.
Google Colab
A handy alternative to a local installation will be Google Colab that allows online storage, sharing, and live execution of (Python) scripts. The environment provided by Google Colab is immediately ready to use. It is particularly suitable for showcasing code samples and inviting other people to try.







Leave a Reply