使用 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

如何解决这个问题呢?

相关内容