Error report when opening anaconda terminal

Asked 2 years ago, Updated 2 years ago, 133 views

When you open anaconda terminal, the following error report is displayed:
Please tell me how to resolve the error.

/Users/username/.anaconda/navigator/a.tool ; exit;

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/Users/username
/opt/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 138, in main
        return activator_main()
      File "/Users/username/opt/anaconda3/lib/python3.7/site-packages/conda/activate.py", line 1098, in main
        print(activator.execute(), end='')
      File "/Users/username/opt/anaconda3/lib/python3.7/site-packages/conda/activate.py", line 182, in execute
        return getattr(self, self.command)()
      File "/Users/username/opt/anaconda3/lib/python3.7/site-packages/conda/activate.py", line 156, in activate
        builder_result = self.build_activate(self.env_name_or_prefix)
      File "/Users/username/opt/anaconda3/lib/python3.7/site-packages/conda/activate.py", line 301, in build_activate
        return self._build_activate_stack(env_name_or_prefix, False)
      File "/Users/username/opt/anaconda3/lib/python3.7/site-packages/conda/activate.py", line 323, in _build_activate_stack
        return self.build_reactivate()
      File"/Users/username/opt/anaconda3/lib/python3.7/site-packages/conda/activate.py", line 503, inbuild_reactivate
        new_path=self.pathsep_join(self._replace_prefix_in_path(conda_prefix,conda_prefix))
      File"/Users/username/opt/anaconda3/lib/python 3.7/site-packages/conda/activate.py", line 628, in_replace_prefix_in_path
        if path_list [last_idx+1] == library_bin_dir:
    IndexError:list index out of range

`$ /Users/username/opt/anaconda3/bin/conda shell.posix activate base`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=/Users/username/opt/anaconda3/bin/conda
             CONDA_PREFIX=/Users/username/opt/anaconda3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=/Users/username/opt/anaconda3/bin/python
               CONDA_ROOT=/Users/username/opt/anaconda3
              CONDA_SHLVL = 1
                     PATH=/Users/username/opt/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/u
                          sr/sbin: /sbin: /opt/X11/bin:/Users/username/opt/anaconda3/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE = <not set>

     active environment:base
    active env location: /Users/username/opt/anaconda3
            shell level:1
       user config file: /Users/username/.condarc
 populated config files: /Users/username/.condarc
          conda version: 4.8.0
    conda-build version: 3.18.9
         python version: 3.7.4.final.0
       virtual packages —__osx=10.15.2
       base environment: /Users/
username/opt/anaconda3 (writable)
           channel URLs: https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache: /Users/username/opt/anaconda3/pkgs
                          /Users/username/.conda/pkgs
       envs directories: /Users/username/opt/anaconda3/envs
                          /Users/username/.conda/envs
               platform —osx-64
             user-agent —conda/4.8.0 requests/2.22.0 CPython/3.7.4 Darwin/19.2.0 OSX/10.15.2
                UID:GID:501:20
             netrc file —None
           offline mode —False


Unexpected error has occurred. Conda has prepared the above report.

__conda_activate:13:command not found:1
                                                                                
username git/master  
/ /Users/username/.anaconda/navigator/a.tool;exit;
/Users/username/.anaconda/navigator/a.tool:line1:syntax error near unexpected token`('
/Users/username/.anaconda/navigator/a.tool:line1:`bash --init-file<(echo "source activate/Users/username/opt/anaconda3/envs/datascience;")'

[Process Completed]

environment
os —MacOS Catalina
shell:zsh

Tried

conda init zsh
conda update conda
conda update jupyter

I couldn't use the jupyter notebook for a while, but now I can use it.

python macos r anaconda zsh

2022-09-29 22:24

1 Answers

I referred to the article you told me in the comments.
I followed the article and put it back to zsh and it worked.

Install Anaconda on your Mac and create a Jupiter environment - Qiita

#Changing the Boot Shell
chsh-s/bin/bash
# Undo the Boot Shell
chsh-s/bin/zsh


2022-09-29 22:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.