[Users] Installing kuibit in Ubuntu 23.04
Gabriele Bozzola
bozzola.gabriele at gmail.com
Thu Aug 17 14:24:41 CDT 2023
Hi CJ Osakwe,
Ubuntu does not allow you to use pip to install packages outside of virtual
environments. This is a choice that the Ubuntu developers took to reduce
the chances that new packages break the existing ones.
This is not an issue that is specific to kuibit, but it applies to any
python package. There are multiple possible ways around this. I personally
use Poetry (https://python-poetry.org/) because it helps me with managing
the development of the package itself. I am not familiar with the other
solutions to the problem, so I cannot tell you which one is the best. I'd
recommend using your preferred search engine and following the some
instruction you understand. Let us know if you face any issues in doing so.
Best,
Gabriele
On Thu, Aug 17, 2023 at 11:58 AM CJ Osakwe <cuosakwe at ucalgary.ca> wrote:
> Hello,
>
> I'm not sure who to talk to about this, but I can't get the command to
> install Kuibit to work.
>
> I've been using the Einstein Toolkit for a few months now, and I wanted to
> update everything in light of the recent 'Schwarzschild' release. The
> toolkit itself was fine, but when I input the shell command to install
> Kuibit:
>
> *pip install --user -U kuibit==1.4.0*
>
> I receive the following error message:
>
>
> *error: externally-managed-environment *
>
>
> *This environment is externally managed *
>
> *╰─> To install Python packages system-wide, try apt install *
>
> * python3-xyz, where xyz is the package you are trying to *
>
> * install. *
>
>
>
> * If you wish to install a non-Debian-packaged Python package, *
>
> * create a virtual environment using python3 -m venv path/to/venv. *
>
> * Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make *
>
> * sure you have python3-full installed. *
>
>
>
> * If you wish to install a non-Debian packaged Python application, *
>
> * it may be easiest to use pipx install xyz, which will manage a *
>
> * virtual environment for you. Make sure you have pipx installed. *
>
>
>
> * See /usr/share/doc/python3.11/README.venv for more information. *
>
>
> *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.*
>
> I should mention that my version of Python no longer recognizes that
> kuibit is installed, i.e., when I run Python I get the error: *ModuleNotFoundError:
> No module named 'kuibit'*. This is what motivated me to update everything
> in the first place.
>
> Thanks,
> CJ Osakwe
> Ph.D. candidate, University of Calgary
>
>
>
> _______________________________________________
> Users mailing list
> Users at einsteintoolkit.org
> http://lists.einsteintoolkit.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/users/attachments/20230817/a04d5451/attachment.htm>
More information about the Users
mailing list