<div dir="ltr">Hi CJ Osakwe,<br><div><br></div><div>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. </div><div><br></div><div>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 (<a href="https://python-poetry.org/">https://python-poetry.org/</a>) 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.</div><div><br></div><div>Best,</div><div>Gabriele</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 17, 2023 at 11:58 AM CJ Osakwe <<a href="mailto:cuosakwe@ucalgary.ca">cuosakwe@ucalgary.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg3185364925611569821">
<div dir="ltr">
<div><span style="font-family:Calibri,Helvetica,sans-serif">Hello,</span><br>
</div>
<div><br>
</div>
<div><span style="font-family:Calibri,Helvetica,sans-serif">I'm not sure who to talk to about this, but I can't get the command to install Kuibit to work.</span><br>
</div>
<div><br>
</div>
<div><span style="font-family:Calibri,Helvetica,sans-serif">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:</span><br>
</div>
<div><br>
</div>
<div><span style="font-family:Calibri,Helvetica,sans-serif"><i>pip install --user -U kuibit==1.4.0</i></span><br>
</div>
<div><br>
</div>
<div><span style="font-family:Calibri,Helvetica,sans-serif">I receive the following error message:</span><br>
</div>
<div><br>
</div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif">error: externally-managed-environment</span><br>
</i></div>
<div><i><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif">This environment is externally managed</span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif">╰─> To install Python packages system-wide, try apt install</span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif"> python3-xyz, where xyz is the package you are trying to</span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif"> install.</span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif"> </span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif"> If you wish to install a non-Debian-packaged Python package,</span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif"> create a virtual environment using python3 -m venv path/to/venv.</span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif"> Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make</span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif"> sure you have python3-full installed.</span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif"> </span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif"> If you wish to install a non-Debian packaged Python application,</span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif"> it may be easiest to use pipx install xyz, which will manage a</span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif"> virtual environment for you. Make sure you have pipx installed.</span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif"> </span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif"> See /usr/share/doc/python3.11/README.venv for more information.</span><br>
</i></div>
<div><i><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif">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.</span><br>
</i></div>
<div><i><span style="font-family:Calibri,Helvetica,sans-serif">hint: See PEP 668 for the detailed specification.</span></i><br>
</div>
<div><br>
</div>
<div><span style="font-family:Calibri,Helvetica,sans-serif">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:
<i>ModuleNotFoundError: No module named 'kuibit'</i>. This is what motivated me to update everything in the first place.</span><br>
</div>
<div><br>
</div>
<div><span style="font-family:Calibri,Helvetica,sans-serif">Thanks,</span><br>
</div>
<div><span style="font-family:Calibri,Helvetica,sans-serif">CJ Osakwe</span><br>
</div>
<div><span style="font-family:Calibri,Helvetica,sans-serif">Ph.D. candidate, University of Calgary</span><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@einsteintoolkit.org" target="_blank">Users@einsteintoolkit.org</a><br>
<a href="http://lists.einsteintoolkit.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.einsteintoolkit.org/mailman/listinfo/users</a><br>
</div></blockquote></div>