sage -pip install in a system-wide install

49 views
Skip to first unread message

Eric Gourgoulhon

unread,
May 28, 2020, 9:07:10 AM5/28/20
to sage-devel
Hi,

During the release of the latest version of the Sage package kerrgeodesic_gw
early this week, various Ubuntu users have complained  that

sage -pip install kerrgeodesic_gw

returns the error

sage-run received unknown option: -pip

This occurs when Sage has been installed as the Ubuntu package "sagemath", i.e. system-wide and not from the binary tar file sage-9.1-Ubuntu_18.04-x86_64.tar.bz2 from the Sage download page.
What would be the solution here? At the moment, I've told to the impacted users to install the binary tar.
Thanks for any help.

Eric.

Vincent Delecroix

unread,
May 28, 2020, 9:28:43 AM5/28/20
to sage-...@googlegroups.com
Dear Eric,

Just use the system pip. The instructions for installation for
system wide Sage that uses system Python is

$ pip install X --user

(or possibly pip2, pip3 depending on config).

Matthias Koeppe

unread,
May 28, 2020, 12:00:09 PM5/28/20
to sage-devel
On Thursday, May 28, 2020 at 6:07:10 AM UTC-7, Eric Gourgoulhon wrote:
various Ubuntu users have complained  that

sage -pip install kerrgeodesic_gw

returns the error

sage-run received unknown option: -pip

This occurs when Sage has been installed as the Ubuntu package "sagemath", i.e. system-wide and not from the binary tar file sage-9.1-Ubuntu_18.04-x86_64.tar.bz2 from the Sage download page.
What would be the solution here? At the moment, I've told to the impacted users to install the binary tar.
Thanks for any help.

See https://trac.sagemath.org/ticket/29111 (Specify a subset of sage command line options that are supported by sagelib - rather than sage-the-distribution)

part of https://trac.sagemath.org/ticket/29060 (Meta-ticket: Add Dockerfiles and CI scripts for integration testing of source and binary distributions and of downstream packages), section "Testing of downstream packaging of sage"

 

Michael Orlitzky

unread,
May 28, 2020, 5:08:59 PM5/28/20
to sage-...@googlegroups.com
On 5/28/20 9:07 AM, Eric Gourgoulhon wrote:
> Hi,
>
> During the release of the latest version of the Sage package kerrgeodesic_gw
> https://pypi.org/project/kerrgeodesic-gw/
> early this week, various Ubuntu users have complained  that
>
> sage -pip install kerrgeodesic_gw
>
> returns the error
>
> sage-run received unknown option: -pip
>

These wrappers should be patched out by distributions for now. There are
likewise a lot of functions within sagelib that have no hope of ever
working on a system install and should be patched out. Fixing it
properly is somewhere on a long list of things to do.

Eric Gourgoulhon

unread,
May 29, 2020, 8:38:21 AM5/29/20
to sage-devel
Thank you Vincent, Matthias and Michael for your answers!
Best regards,

Eric.
Reply all
Reply to author
Forward
0 new messages