如何解决Anaconda 安装程序在解压有效负载后退出并且不安装任何东西
和大家一样,升级后我无法使用anaconda。最后,我删除了所有内容并再次下载以从头开始安装。 我在 Mac OS Catalina 10.15.7 上使用 Anaconda3-2020.11-MacOSX-x86_64.sh 在安装过程中,它说“解压缩有效载荷”并提取一些文件。之后,什么都没有发生,没有错误信息,什么都没有。
如果我去 /Users/Nebula/anaconda3/ 只有几个文件。没有bin文件夹。
基本上它根本没有安装。如果我使用图形安装程序进行安装,也会发生同样的情况。
___更新:
我试过 bash 和 zsh,两者都一样。
然后我尝试使用 brew install anaconda 并出现此错误。
它也不安装它。
____更新2:
我一直在尝试多个版本,我设法安装了 2018 年的版本。但是,当我运行 conda 时,它显示:发生了意外错误。
____更新3:
我已经用 bash -x 运行它 这是输出。最后,它似乎正在尝试运行 conda.exe,这对于 mac 来说很奇怪。它要求是/否,无论我回答是还是否,它都会退出。
Nebula@Infinitys-MacBook-Pro ~ % bash -x Downloads/Anaconda3-2020.11-MacOSX-x86_64.sh
+ unset DYLD_LIBRARY_PATH
+ echo Downloads/Anaconda3-2020.11-MacOSX-x86_64.sh
+ grep '\.sh$'
+ '[' -n /bin/zsh ']'
+ RUNNING_SHELL=/bin/zsh
+ '[' -z /bin/zsh ']'
+ '[' '!' -f /bin/zsh ']'
+ '[' -z /bin/zsh ']'
+ '[' '!' -f /bin/zsh ']'
+++ dirname Downloads/Anaconda3-2020.11-MacOSX-x86_64.sh
++ DIRNAME=Downloads
++ cd Downloads
++ pwd
+ THIS_DIR=/Users/Nebula/Downloads
++ basename Downloads/Anaconda3-2020.11-MacOSX-x86_64.sh
+ THIS_FILE=Anaconda3-2020.11-MacOSX-x86_64.sh
+ THIS_PATH=/Users/Nebula/Downloads/Anaconda3-2020.11-MacOSX-x86_64.sh
+ PREFIX=/Users/Nebula/anaconda3
+ BATCH=0
+ FORCE=0
+ SKIP_SCRIPTS=0
+ TEST=0
+ REINSTALL=0
+ USAGE='
usage: Downloads/Anaconda3-2020.11-MacOSX-x86_64.sh [options]
Installs Anaconda3 2020.11
-b run install in batch mode (without manual intervention),it is expected the license terms are agreed upon
-f no error if install prefix already exists
-h print this help message and exit
-p PREFIX install prefix,defaults to /Users/Nebula/anaconda3,must not contain spaces.
-s skip running pre/post-link/install scripts
-u update an existing installation
-t run package tests after installation (may install conda-build)
'
+ which getopt
++ getopt bfhp:sut ''
+ OPTS=' -- '
+ '[' '!' 0 ']'
+ eval set -- ' -- '
++ set -- --
+ true
+ case "$1" in
+ shift
+ break
+ '[' 0 = 0 ']'
++ uname -m
+ '[' x86_64 '!=' x86_64 ']'
++ uname
+ '[' Darwin '!=' Darwin ']'
+ printf '\n'
+ printf 'Welcome to Anaconda3 2020.11\n'
Welcome to Anaconda3 2020.11
+ printf '\n'
+ printf 'In order to continue the installation process,please review the license\n'
In order to continue the installation process,please review the license
+ printf 'agreement.\n'
agreement.
+ printf 'Please,press ENTER to continue\n'
Please,press ENTER to continue
+ printf '>>> '
>>> + read -r dummy
Do you accept the license terms? [yes|no]
+ printf '[no] >>> '
[no] >>> + read -r ans
yes
+ '[' yes '!=' yes ']'
+ '[' yes '!=' yes ']'
+ printf '\n'
+ printf 'Anaconda3 will now be installed into this location:\n'
Anaconda3 will now be installed into this location:
+ printf '%s\n' /Users/Nebula/anaconda3
/Users/Nebula/anaconda3
+ printf '\n'
+ printf ' - Press ENTER to confirm the location\n'
- Press ENTER to confirm the location
+ printf ' - Press CTRL-C to abort the installation\n'
- Press CTRL-C to abort the installation
+ printf ' - Or specify a different location below\n'
- Or specify a different location below
+ printf '\n'
+ printf '[%s] >>> ' /Users/Nebula/anaconda3
[/Users/Nebula/anaconda3] >>> + read -r user_prefix
+ '[' '' '!=' '' ']'
+ case "$PREFIX" in
+ '[' 0 = 0 ']'
+ '[' -e /Users/Nebula/anaconda3 ']'
+ '[' 0 = 1 ']'
+ mkdir -p /Users/Nebula/anaconda3
++ cd /Users/Nebula/anaconda3
++ pwd
+ PREFIX=/Users/Nebula/anaconda3
+ export PREFIX
+ printf 'PREFIX=%s\n' /Users/Nebula/anaconda3
PREFIX=/Users/Nebula/anaconda3
++ tail -n +588 /Users/Nebula/Downloads/Anaconda3-2020.11-MacOSX-x86_64.sh
++ md5
+ MD5=ffe6c79627482cbbc073b4d7509bacb2
+ echo ffe6c79627482cbbc073b4d7509bacb2
+ grep ffe6c79627482cbbc073b4d7509bacb2
+ cd /Users/Nebula/anaconda3
+ unset PYTHON_SYSCONFIGDATA_NAME _CONDA_PYTHON_SYSCONFIGDATA_NAME
+ CONDA_EXEC=/Users/Nebula/anaconda3/conda.exe
+ dd if=/Users/Nebula/Downloads/Anaconda3-2020.11-MacOSX-x86_64.sh bs=1 skip=27718 count=5050
+ dd if=/Users/Nebula/Downloads/Anaconda3-2020.11-MacOSX-x86_64.sh bs=16384 skip=2 count=903
+ dd if=/Users/Nebula/Downloads/Anaconda3-2020.11-MacOSX-x86_64.sh bs=1 skip=14827520 count=7405
+ chmod +x /Users/Nebula/anaconda3/conda.exe
+ export TMP_BACKUP=
+ TMP_BACKUP=
+ export TMP=/Users/Nebula/anaconda3/install_tmp
+ TMP=/Users/Nebula/anaconda3/install_tmp
+ printf 'Unpacking payload ...\n'
Unpacking payload ...
+ dd if=/Users/Nebula/Downloads/Anaconda3-2020.11-MacOSX-x86_64.sh bs=1 skip=14834925 count=8979
+ /Users/Nebula/anaconda3/conda.exe constructor --extract-tar --prefix /Users/Nebula/anaconda3
+ dd if=/Users/Nebula/Downloads/Anaconda3-2020.11-MacOSX-x86_64.sh bs=16384 skip=906 count=26470
+ dd if=/Users/Nebula/Downloads/Anaconda3-2020.11-MacOSX-x86_64.sh bs=1 skip=448528384 count=4122
+ /Users/Nebula/anaconda3/conda.exe constructor --prefix /Users/Nebula/anaconda3 --extract-conda-pkgs
+ PRECONDA=/Users/Nebula/anaconda3/preconda.tar.bz2
+ /Users/Nebula/anaconda3/conda.exe constructor --prefix /Users/Nebula/anaconda3 --extract-tarball
+ rm -f /Users/Nebula/anaconda3/preconda.tar.bz2
+ PYTHON=/Users/Nebula/anaconda3/bin/python
+ MSGS=/Users/Nebula/anaconda3/.messages.txt
+ touch /Users/Nebula/anaconda3/.messages.txt
+ export FORCE
+ mkdir -p /Users/Nebula/.conda
+ CONDA_SAFETY_CHECKS=disabled
+ CONDA_EXTRA_SAFETY_CHECKS=no
+ CONDA_ROLLBACK_ENABLED=no
+ CONDA_CHANNELS=https://repo.anaconda.com/pkgs/main,https://repo.anaconda.com/pkgs/main,https://repo.anaconda.com/pkgs/r,https://repo.anaconda.com/pkgs/pro
+ CONDA_PKGS_DIRS=/Users/Nebula/anaconda3/pkgs
+ /Users/Nebula/anaconda3/conda.exe install --offline --file /Users/Nebula/anaconda3/pkgs/env.txt -yp /Users/Nebula/anaconda3
[y/N]: y
+ exit 1
Nebula@Infinitys-MacBook-Pro ~ %
解决方法
解决我终于解决了。我删除了主目录中的 .condarc 和 .conda 文件夹。然后我再次运行安装程序,它成功了。
问题似乎是每次我尝试重新安装 anaconda 时,我只是擦除了 anaconda3 文件夹,而不是隐藏在主目录中导致问题的文件/文件夹。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。