Ben Chuanlong Du's Blog

It is never too late to learn.

ModuleNotFoundError: No Module Named _Ctypes in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Issue

The error message "ModuleNotFoundError: No Module Named _Ctypes" is thrown when using Python.

Cause

A crucial built-in module, _ctypes, is either missing from your Python installation or cannot be located …

Manage Python Projects Using uv

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Installation

curl -LsSf https://astral.sh/uv/install.sh | sh

curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh

curl -LsSf https://astral.sh/uv/install …

Ruff Is An Extremely Fast Python Linter Written in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Use ruff In a uv Managed Python Project

uv run ruff check 
uv run ruff format .

Use ruff Standalone

The most convenient way to use run ruff standalone is via uvx …