1. Install NodeKit
This tutorial walks through how to install NodeKit on your system.
NodeKit is a Python library. It is installed using the uv Python package and project manager.
Quick install for uv users
If you already know how to use uv and have it on your system, navigate to the directory containing the Python project where you'd like to install NodeKit. Then run:
Installation with pip
If you prefer to use pip, and know how to manage your virtual environments and pyproject.toml file, you can also run:
Step 1: Install uv¶
Follow the uv installation guide, if you don't already use uv on your system.
You can confirm uv is successfully installed by running the following command in your terminal:
The terminal should print out a version number, like this:
Step 2: Start a Python project for the tutorial code¶
- Navigate to any directory where you'd like to house a folder containing the NodeKit tutorial code.
- Run the following command in your terminal:
You should see a new directory called "nodekit-tutorial" containing a
pyproject.tomlfile, amain.pyfile, and aREADME.mdfile appear.
PyCharm user?
If you're a PyCharm user, you can follow the instructions here to start a new Python project using uv without touching the terminal.
Step 3: Install nodekit¶
Ensure you are in the directory containing the pyproject.toml file (from the previous step, this should be the nodekit-tutorial directory). Then, run the following command in the terminal:
You should see the console report that a virtual environment created, and that several Python packages have been installed.
To verify that everything worked:
- Run the following command in your terminal: An interactive Python console should appear in your terminal.
- Type the following command into the Python console:
If the above worked with no error messages popping up, you've successfully installed NodeKit!