New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/issues/47135#issuecomment-1826828577 Comment: Of course this is expected and how venv works afaik: ``` $ python -m venv bad-venv $ . bad-venv/bin/activate (bad-venv) $ python -m sage .../bad-venv/bin/python: No module named sage (bad-venv) $ ``` What you want can be acomplished with `--system-site-packages`: ``` $ python -m venv --system-site-packages good-venv $ . good-venv/bin/activate (good-venv) $ python -m sage .../good-venv/bin/python: No module named sage.__main__; 'sage' is a package and cannot be directly executed (good-venv) $ jupyter console --kernel=sagemath [IPKernelApp] WARNING | debugpy_stream undefined, debugging will not be enabled Jupyter console 6.6.3 ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 10.2.rc4, Release Date: 2023-11-17 │ │ Using Python 3.12.0. Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Warning: this is a prerelease version, and it may be unstable. ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ In [1]: ``` Please check if this works for you. Note that running sage like this is unsupported upstream. They really want you to build the whole kitchen sink.