Miniconda3安装失败,错误为“ python-3.7.1-h0371630_7 / bin / python:找不到”

时间:2019-11-01 17:54:13

标签: python ubuntu miniconda

为Linux安装Miniconda3时出现此错误:

PREFIX=/data/ubuntu/miniconda3
installing: python-3.7.1-h0371630_7 ...
Miniconda3-latest-Linux-x86.sh: 373: Miniconda3-latest-Linux-x86.sh: /data/ubuntu/miniconda3/pkgs/python-3.7.1-h0371630_7/bin/python: not found

为什么会发生,我该怎么办?

whereis python
python: /usr/bin/python3.6m /usr/bin/python3.6 /usr/lib/python2.7 /usr/lib/python3.7 /usr/lib/python3.6 /etc/python3.6 /usr/local/lib/python3.6 /usr/share/python

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/bin/python3.6:/usr/lib/python3.7

尝试在Ubuntu AWS实例上安装。

1 个答案:

答案 0 :(得分:0)

原因是架构错误。需要使用Miniconda3-latest-Linux-x86_64.sh代替Miniconda3-latest-Linux-x86.sh。