Skip to content

from sage.misc.banner import banner ModuleNotFoundError: No module named 'sage' #36360

@gq1378

Description

@gq1378

Steps To Reproduce

in wsl kali on win11, try to install sage, version: 10.1

  1. apt install the prerequisites
  2. install sage following: Alternative Installation using PyPI
    $ python3 -m pip install sage_conf
    $ ls $(sage-config SAGE_SPKG_WHEELS)
    $ python3 -m pip install $(sage-config SAGE_SPKG_WHEELS)/*.whl
    $ python3 -m pip install sagemath-standard
  3. type sage, then this happens:
    Traceback (most recent call last):
    File "/home/kali/.local/bin/sage-ipython", line 9, in
    from sage.misc.banner import banner
    ModuleNotFoundError: No module named 'sage'
  4. however, type sage-ipython, sage starts normally.

Expected Behavior

run sage should start sage like run sage-ipython

Actual Behavior

can run sage-ipython but not sage

Additional Information

I don't wanna have to type sage-ipython to start sage every time

Environment

- **OS**: in wsl kali on win11
- **Sage Version**: 10.1 (pypi)

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions