[英]Error while installing Anaconda
I have Ubuntu 16.04 LTS 64-bit Python 2.7.12 我有Ubuntu 16.04 LTS 64位Python 2.7.12
I am installing Anaconda 5.2 for Python 2.7 version,and I am always getting this error: 我正在为Python 2.7版本安装Anaconda 5.2,并且总是收到以下错误消息:
[/home/nvidia/anaconda2] >>> nvidia/anaconda3 PREFIX=/home/nvidia/nvidia/anaconda3 installing: python-2.7.15-h1571d57_0 ... Anaconda2-5.2.2.0-Linux-x86_64.sh: line 370: /home/nvidia/nvidia/anaconda3/pkgs/python-2.7.15-h1571d57_0/bin/python: cannot execute binary file: Exec format error
I tried to change directory, it didn't work ? 我试图更改目录,但没有成功? I tried different versions of the Anaconda, it didn't work ?
我尝试了不同版本的Anaconda,这没有用吗?
Your core problem is that you're trying to install software compiled for the x86_64 processor, but you have ARM8 processors. 您的核心问题是您试图安装为x86_64处理器编译的软件,但是您拥有ARM8处理器。 (According to the tech specs for the Jetson TX2 , it has HMP Dual Denver 2/2 MB L2 and Quad ARM® A57/2 MB L2 .)
(根据Jetson TX2的技术规格 ,它具有HMP Dual Denver 2/2 MB L2和QuadARM®A57 / 2 MB L2 。)
The fact that they're both 64-bit doesn't make any difference; 它们都是64位的事实并没有任何区别。 they're still radically different process architectures, with different instruction sets, so they can't run each other's code.
它们仍然是完全不同的流程体系结构,具有不同的指令集,因此它们不能运行彼此的代码。
And that's why you get cannot execute binary file: Exec format error
. 这就是为什么您
cannot execute binary file: Exec format error
。
From what I understand, Anaconda only provides supported installers for a handful of linux platforms—x86_64, x86, and POWER. 据我了解,Anaconda仅为少数Linux平台(x86_64,x86和POWER)提供受支持的安装程序。
And I'm not aware of anyone providing third-party ported binary installers. 而且我不知道有人提供第三方移植的二进制安装程序。
However, it should be possible to build Anaconda, or at least Miniconda, from source. 但是,应该有可能从源代码构建Anaconda,或至少构建Miniconda。
For example, this site explains how to build it for IBM Z-Series computers running Ubuntu, which probably isn't too different from what you'd need to do. 例如, 此站点说明了如何为运行Ubuntu的IBM Z系列计算机构建它,这可能与您需要做的没有太大不同。
uname
instead of s390x
. s390x
来实现uname
。 I don't think anything else is likely to be a problem, but I haven't tried anything remotely similar. 我认为没有其他问题可能会出现,但是我还没有尝试过任何类似的远程尝试。
Alternatively, you could just use Ubuntu's Python, and manage your Python packages with the traditional combination of apt-get
and pip
. 另外,您可以只使用Ubuntu的Python,并使用
apt-get
和pip
的传统组合来管理Python包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.