[Python] How to know if a Python package (e.g., ipykernel) is preinstalled on macOS — and...

Discussão em 'Python' iniciado por Stack, Abril 13, 2025.

  1. Stack

    Stack Membro Participativo

    I'm using macOS and working on a Python project with a virtual environment (venv) in VS Code. At one point, VS Code prompted me to install ipykernel, and I accidentally clicked "Install" — but only later realized that the selected interpreter wasn't my venv. So ipykernel got installed globally (i.e., outside the virtual environment).

    Now I'm wondering:


    • Is ipykernel preinstalled as part of macOS's system Python?


    • How can I check if a globally installed package is part of the system or user-installed?


    • Most importantly, is it safe to uninstall such packages globally, or could that break system-level tools?

    Continue reading...

Compartilhe esta Página