Open Eloitor opened 1 week ago
First I installed sage using the package manager of my linux distribution.
main.py
from sage.all import ZZ print(ZZ)
uv run main.py
Output is Integer Ring.
Integer Ring
uv add --script main.py datasheet uv run main.py
I get:
Reading inline script metadata from: main.py Traceback (most recent call last): File "/home/eloi/main.py", line 7, in <module> from sage.all import ZZ ModuleNotFoundError: No module named 'sage'
It would be nice if it was possible to add system-site-packages using uv add --script
uv add --script
uv --version
related: https://github.com/astral-sh/uv/issues/1483
First I installed sage using the package manager of my linux distribution.
This works
main.py
Output is
Integer Ring
.This does not work
I get:
Request
It would be nice if it was possible to add system-site-packages using
uv add --script
uv --version
). uv 0.4.17