I have not used either before, and the last time I used python seriously was before virtual environments. I’m wanting to work on a few statistics projects that will mostly use r but a little python too. Since I’m disabled and have memory issues I liked the sound of Jupyter-AI to help keep me on track but I can’t find any info on the best way to configure it globally. If I try to install it as recommended on Getting Started - Jupyter AI I get warnings about no virtual environment.
> uv pip install jupyter-ai
error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
and
❯ pip install jupyter-ai
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try 'pacman -S
python-xyz', where xyz is the package you are trying to
install.
If you wish to install a non-Arch-packaged Python package,
create a virtual environment using 'python -m venv path/to/venv'.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.
If you wish to install a non-Arch packaged Python application,
it may be easiest to use 'pipx install xyz', which will manage a
virtual environment for you. Make sure you have python-pipx
installed via pacman.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
But I was wanting to use Jupyter-AI across multiple projects that will each have their own virtual environment so I presume it would be better to have Jupyter-AI installed globally rather than for each venv. Is my thinking incorrect, and if not will I run into issues installing it with say uv --system pip install jupyter-ai?
And/or is there an entirely better way to go about this?
Manjaro Linux
