Skip to content

Instantly share code, notes, and snippets.

@aont
Created October 11, 2025 11:44
Show Gist options
  • Select an option

  • Save aont/f4b6a1db193073936fb3c595e17788ae to your computer and use it in GitHub Desktop.

Select an option

Save aont/f4b6a1db193073936fb3c595e17788ae to your computer and use it in GitHub Desktop.

Use System Packages in a Virtualenv

To let a virtual environment see globally installed packages, create it with:

python3 -m venv --system-site-packages venv

Why use it?

  • Reuse OS-installed libs (e.g., NumPy), save time/space.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment