使用 sage(使用 python)shell 在 aws ec2 上“無法執行二進位檔案”

使用 sage(使用 python)shell 在 aws ec2 上“無法執行二進位檔案”

我想在 AWS EC2 伺服器上使用 SageMath(使用 Python)。

當我嘗試 SageMath 控制台介面時,出現以下錯誤:

/opt/sagemath-8.8/local/bin/python: /opt/sagemath-8.8/local/bin/python: cannot execute binary file
/bin/bash: Exit 126.

在 SageMath shell 環境中,我遇到了同樣的錯誤:

(sage-sh) Administrator@EC2AMAZ-P55TVFN:~$ sage
/opt/sagemath-8.8/local/bin/python: /opt/sagemath-8.8/local/bin/python: cannot execute binary file

如果有用,以下是 $PATH 指令給出的內容:

(sage-sh) Administrator@EC2AMAZ-P55TVFN:~$ $PATH
bash: /opt/sagemath-8.8/local/lib/R/lib:/opt/sagemath-8.8/local/lib:/opt/sagemath-8.8/build/bin:/opt/sagemath-8.8/src/bin:/opt/sagemath-8.8/local/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Windows/System32/OpenSSH:/cygdrive/c/Program: No such file or directory

如何解決這個問題呢?

相關內容