New ways to install Sage failed ; Need help
I am sorry to be obliged to ask this question. Until now, I was using the old Sagemath version with an automatic installation on Windows 10. But I would like to be update. Secondly, I use Sagemath in courses, and I need student to install it. Of course they can use Sagecell but I prefer to use Jupiter notebooks to interact with them. So if I understand correctly, there is two ways now to install Sagemath on my computer :
1) Docker Sagemath. So Docker has been installed on my computer (for two days it was installed but the start was non stopping so I supposed that a correction has been applied). Now I went in the site https://hub.docker.com/r/sagemath/sagemath
, copy docker pull sagemath/sagemath
and run it in PowerShell. Then inside Powershell running docker run -it sagemath/sagemath:latest
I have a perfect version of a command line Sagemath.
Here comes my problem : running docker run -p8888:8888 sagemath/sagemath:latest sage-jupyter
returns the following error docker: Error response from daemon: driver failed programming external connectivity on endpoint kind_kirch (58408cd6ac6e671d23cf5f9875de73bd013477b6ebb526ba499cc00d9e68c78f): Bind for 0.0.0.0:8888 failed: port is already allocated.
Inside Docker I have closed all the containers and even if I worked from Docker, I could not have a jupiter notebooks. I have tried to search on internet to find what went wrong but I hav not founded any usefull information. Could some one help me.
2) the second way is to use wsl2 and install Ubuntu and then Sagemath in Ubuntu. But in that case, when installing sagemath inside Ubuntu I have always errors some comming from mathplot-lib.
I have constructed all my Operation Research on Sagemath and I need to have a simple way to install it. Not only for me but mainly for my students who are not computer scientists.
For 2) (Unbuntu in WSL2), could these install notes be helpful?
See also https://ask.sagemath.org/question/661...
Which ever be he way i try to install Sage there is always a fail. I need a simple installation in the same way that the old .msi. If Sagemath should be worked on windows it is for Non computer scientists who are stiemed by Linux (whichever be the advantage of it on Windows). I they have difficulties to install it, the will renounce.
Could you specify what errors you are encountering? which step is giving you trouble here?
I do not think the procedure is difficult
tell me I will help you,
Maybe for your students you could put all the commands in a Bash script ?or at least some parts. look here
2) the second way is to use wsl2 and install Ubuntu and then Sagemath in Ubuntu. But in that case, when installing sagemath inside Ubuntu I have always errors some comming from mathplot-lib.
Could you give us the matplotlib error message you got ?
When does this error happen, in the installation process, but which step ?or during code execution phase?
We are not psychics. A couple clarifications would be damn useful...
After Docker installation, did you try to restart your machine ? Docker installation may have left a lingering server...
Could you report what error messages from
matplotlib
(not "mathplot-lib", unles I'm mistaken...) you get after WSL installation ?I will try to answer your question step by step since I have found a way to make Sagemath work. I have installed Docker successfully now. So starting from a turned off computer, I start Docker. Then I go to
https://hub.docker.com/r/sagemath/sagemath
and copydocker pull sagemath/sagemath
and run this comand inPowershell
(of course I have done this one time). Then, if i want a line of command SageMath, I copydocker run -it sagemath/sagemath:latest
and run it in Powershell. (I am oblige to cut in two part this comment)It works nicely. In the same way, if I run
docker run -p8888:8888 sagemath/sagemath:latest sage-jupyter
, it propose to copy one of two possibles adress :http://50f560f788ec:8888/?token=eed147f951986331190b56607dd0d01c8e6acbde92870fd8
orhttp://127.0.0.1:8888/?token=eed147f951986331190b56607dd0d01c8e6ac
My mistake was to use the first whih doesn't work. The second works nicely. But I wonder now why the first doesn't work ?But there is an other problem.(I add it in a new comment)