Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Installing packages using pip

Recently I tried to install packages for Sage using pip. Often the descriptions says to execute something like

sage -pip install package_name

If I execute that in the terminal I get the error

sage-run received unknown option: -pip

If I start sage in the terminal and execute it there I get invalid syntax errors. I tried the exact string from above, I tried "pip install ..." and "-pip install ...". All lead to a syntax error. What do I do wrong? This happens with all packages I tried.

I use a freshly installed virtual machine with Ubuntu 18.04 and SageMath version 8.1 which I installed using "sudo apt install sagemath". sage itself works perfectly fine and I can start it with "sage" from the terminal.

I have no real experience with linux, the terminal or with any of that stuff, so I am sure that I miss some really obvious things...

Installing packages using pip

Recently I tried to install packages for Sage using pip. Often the descriptions says to execute something like

sage -pip install package_name

If I execute that in the terminal I get the error

sage-run received unknown option: -pip

If I start sage in the terminal and execute it there I get invalid syntax errors. I tried the exact string from above, I tried "pip install ..." and "-pip install ...". All lead to a syntax error. What do I do wrong? This happens with all packages I tried.

I use a freshly installed virtual machine with Ubuntu 18.04 and SageMath version 8.1 which I installed using "sudo apt install sagemath". sage itself works perfectly fine and I can start it with "sage" from the terminal.

I have no real experience with linux, the terminal or with any of that stuff, so I am sure that I miss some really obvious things...

Installing packages using pippip for Sage installed via apt

Recently I tried to install packages for Sage using pip. Often the descriptions says to execute something like

sage -pip install package_name

If I execute that in the terminal I get the error

sage-run received unknown option: -pip

-pip

If I start sage in the terminal and execute it there I get invalid syntax errors. I tried the exact string from above, I tried "pip install ..." and "-pip install ...". pip install ... and -pip install .... All lead to a syntax error. What do I do wrong? This happens with all packages I tried.

I use a freshly installed virtual machine with Ubuntu 18.04 and SageMath version 8.1 which I installed using "sudo sudo apt install sagemath". sage sagemath. Sage itself works perfectly fine and I can start it with "sage" sage from the terminal. terminal.

I have no real experience with linux, the terminal or with any of that stuff, so I am sure that I miss some really obvious things...