There are two solutions, but before solving this, you should know that Debian 12 recommends using a virtual environment (venv) when using Python. It is presumed that it was blocked on purpose, but the solution is actually very simple. 1st way. Use virtual environment cd [Path where you want to install venv] python3 -m venv venv source /venv/bin/activate or python3 -m venv [path you want] source ..