Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anaconda installer failed to install on MacOS Catalina #10998

Closed
teristam opened this issue Jun 10, 2019 · 41 comments
Closed

Anaconda installer failed to install on MacOS Catalina #10998

teristam opened this issue Jun 10, 2019 · 41 comments

Comments

@teristam
Copy link

@teristam teristam commented Jun 10, 2019

Actual Behavior

When trying to install Anaconda with Python 3.7 on MacOS Catalina, the installer failed with the "The installer encountered an error that caused the installation to failed. Contact the software manufacturer for assistance"

Expected Behavior

Anaconda should install successfully.

Steps to Reproduce

Install Anaconda3 Python 3.7 on MacOS Catalina Beta 10.15.

Anaconda or Miniconda version:

Anaconda3-2019.03-MacOSX-x86_64

Operating System:
conda info
PASTE OUTPUT HERE:

conda list --show-channel-urls
PASTE OUTPUT HERE:

@syeerzy

This comment has been minimized.

Copy link

@syeerzy syeerzy commented Jun 11, 2019

the command line installer is ok.
I just install on catalina

@teristam teristam changed the title Ananconda installer failed to install on MacOS Catalina Anaconda installer failed to install on MacOS Catalina Jun 11, 2019
@Overexposed

This comment has been minimized.

Copy link

@Overexposed Overexposed commented Jul 10, 2019

Do you encounter the problem that the documents folder and desktop folder can not be seen and accessed in the Jupiter notebook?

@msarahan

This comment has been minimized.

Copy link
Member

@msarahan msarahan commented Jul 11, 2019

We do not support beta operating systems. We will work to support Catalina when it is fully released.

@msarahan msarahan closed this Jul 11, 2019
@SkyloveWingForever

This comment has been minimized.

Copy link

@SkyloveWingForever SkyloveWingForever commented Jul 19, 2019

Why Anaconda do able to be installed on macOS Mojave beta version, but not be able to installed on macOS Catalina beta, what will be the issue?

@glenn-jocher

This comment has been minimized.

Copy link

@glenn-jocher glenn-jocher commented Jul 22, 2019

+1. Same issue encountered.

@Overexposed

This comment has been minimized.

Copy link

@Overexposed Overexposed commented Jul 23, 2019

syeerzy is right, you can install Anaconda in Catalina by the command line installer. If you want to access the documents or desktop folder, you can start the Jupyter notebook from these two folders and you will receive an notification to choose whether to access these folders from Terminal.

@stelukutla

This comment has been minimized.

Copy link

@stelukutla stelukutla commented Aug 25, 2019

Got the same issue. I am going to try the command line installer.

@stelukutla

This comment has been minimized.

Copy link

@stelukutla stelukutla commented Aug 25, 2019

The issue didn't appear after changing the installation location. Looks good now.

@drelich

This comment has been minimized.

Copy link

@drelich drelich commented Sep 15, 2019

The issue didn't appear after changing the installation location. Looks good now.

I can confirm, installation succeeds if you change the location. The problem with default location install is that it doesn't prompt you to enter user password. Changing the location does the trick.

@Swang007

This comment has been minimized.

Copy link

@Swang007 Swang007 commented Oct 7, 2019

After installing Anaconda to its default location with Mojave, I've found that the upgrade to Catalina moves the "anaconda3" folder to your Desktop > Relocated Items > Security > anaconda3. It seems Catalina's security settings may not allow applications to install directly under the user directory anymore.

@SinaDibaji

This comment has been minimized.

Copy link

@SinaDibaji SinaDibaji commented Oct 7, 2019

After installing Anaconda to its default location with Mojave, I've found that the upgrade to Catalina moves the "anaconda3" folder to your Desktop > Relocated Items > Security > anaconda3. It seems Catalina's security settings may not allow applications to install directly under the user directory anymore.

@Swang007 Do you how to solve this issue? Should it be installed again?

@lhnguyen102

This comment has been minimized.

Copy link

@lhnguyen102 lhnguyen102 commented Oct 7, 2019

Hi,
I might have a solution

  • Copy the folder anaconda3 located in Relocated Items to /Users/myname/
  • Open Terminal
  • Enter: export PATH=''/Users/myname/anaconda3/bin:$PATH"
  • Enter: conda init zsh

It worked!
Good luck!

@DiegoGH117

This comment has been minimized.

Copy link

@DiegoGH117 DiegoGH117 commented Oct 7, 2019

Hi,
I might have a solution

  • Copy the folder anaconda3 located in Relocated Items to /Users/myname/
  • Open Terminal
  • Enter: export PATH=''/Users/myname/anaconda3/bin:$PATH"
  • Enter: conda init zsh

It worked!
Good luck!

After I do the third step a new line is printed that says:
dquote>
Then I enter the last step, but it doesn't do anything. Does anyone have any suggestions?

Thanks in advance!

@better365

This comment has been minimized.

Copy link

@better365 better365 commented Oct 7, 2019

Hi,
I might have a solution

  • Copy the folder anaconda3 located in Relocated Items to /Users/myname/
  • Open Terminal
  • Enter: export PATH=''/Users/myname/anaconda3/bin:$PATH"
  • Enter: conda init zsh

It worked!
Good luck!

It doesn't work for me for the first time. After rebooting my machine due to a network error. I reran the commands and it worked.

@joportiz

This comment has been minimized.

Copy link

@joportiz joportiz commented Oct 8, 2019

Hi,
I might have a solution

  • Copy the folder anaconda3 located in Relocated Items to /Users/myname/
  • Open Terminal
  • Enter: export PATH=''/Users/myname/anaconda3/bin:$PATH"
  • Enter: conda init zsh

It worked!
Good luck!

After I do the third step a new line is printed that says:
dquote>
Then I enter the last step, but it doesn't do anything. Does anyone have any suggestions?

Thanks in advance!

@DiegoGH117
I think the problem is the quote mark after the '=' (if you copy and paste). But step 4 didn't work for me. Did you solve it?

@B1ackSyntax

This comment has been minimized.

Copy link

@B1ackSyntax B1ackSyntax commented Oct 8, 2019

Tried the command line trick but it says no such file or directory

@LombardiDaniel

This comment has been minimized.

Copy link

@LombardiDaniel LombardiDaniel commented Oct 8, 2019

I tried everything above and didn't work, then I just installed it using brew, and it all worked just fine:

brew cask install anaconda

@B1ackSyntax

This comment has been minimized.

Copy link

@B1ackSyntax B1ackSyntax commented Oct 8, 2019

it now says brew: command not found

@njufyz

This comment has been minimized.

Copy link

@njufyz njufyz commented Oct 8, 2019

Are you guys using zsh?
/(your conda installation path)/bin/conda init zsh works for me.

@anirrudh

This comment has been minimized.

Copy link

@anirrudh anirrudh commented Oct 8, 2019

With @njufyz's method, ensure that at the top of the conda file, the path is set to the right conda installation path. Basically, /anaconda3 should now change to Users/Usermame/anaconda3/...

@LorenzoStucchi

This comment has been minimized.

Copy link

@LorenzoStucchi LorenzoStucchi commented Oct 8, 2019

Are you guys using zsh?
/(your conda installation path)/bin/conda init zsh works for me.

I try this method but doesn't works, I have this error:

zsh: /Users/Lorenzo/Applications/anaconda3/bin/conda: bad interpreter: /anaconda3/bin/python: no such file or directory

@bruceyanwee

This comment has been minimized.

Copy link

@bruceyanwee bruceyanwee commented Oct 8, 2019

what config file should I change if I want set path from /anaconda3 from ~/anaconda3
`PATH="/usr/local/Cellar/python/3.7/bin:${PATH}"

added by Anaconda3 5.3.0 installer

>>> conda init >>>

!! Contents within this block are managed by 'conda init' !!

__conda_setup="$(CONDA_REPORT_ERRORS=false '/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/anaconda3/etc/profile.d/conda.sh" ]; then
. "/anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup

<<< conda init <<<

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session as a function
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
[ -r ~/.bashrc ] && source ~/.bashrc`

@bruceyanwee

This comment has been minimized.

Copy link

@bruceyanwee bruceyanwee commented Oct 8, 2019

Are you guys using zsh?
/(your conda installation path)/bin/conda init zsh works for me.

I try this method but doesn't works, I have this error:

zsh: /Users/Lorenzo/Applications/anaconda3/bin/conda: bad interpreter: /anaconda3/bin/python: no such file or directory

yes,I have the same problem with you ,I feel so plz~~

@prog201612

This comment has been minimized.

Copy link

@prog201612 prog201612 commented Oct 8, 2019

Activate zsh width:
chsh -s /bin/zsh

Copy anaconda3/ path to /Users/<my_user>/
export PATH="/Users/<my_user>/anaconda3/bin:$PATH"

Edit file: /Users/<my_user>/anaconda3/conda
Edit the first line like: #!/Users/<my_user>/anaconda3/bin/python
Save changes

/Users/<my_user>/anaconda3/bin/conda init zsh

This works for me, thanks!!!

@verajosemanuel

This comment has been minimized.

Copy link

@verajosemanuel verajosemanuel commented Oct 8, 2019

Activate zsh width:
chsh -s /bin/zsh

Copy anaconda3/ path to /Users/<my_user>/
export PATH="/Users/<my_user>/anaconda3/bin:$PATH"

Edit file: /Users/<my_user>/anaconda3/conda
Edit the first line like: #!/Users/<my_user>/anaconda3/bin/python
Save changes

/Users/<my_user>/anaconda3/bin/conda init zsh

This works for me, thanks!!!

no such conda file to edit

@seulert

This comment has been minimized.

Copy link

@seulert seulert commented Oct 8, 2019

Hi,
I might have a solution

  • Copy the folder anaconda3 located in Relocated Items to /Users/myname/
  • Open Terminal
  • Enter: export PATH=''/Users/myname/anaconda3/bin:$PATH"
  • Enter: conda init zsh

It worked!
Good luck!

Following this I was able to get conda to work. However, jupyter etc. don't work and throw bad interpreter errors bad interpreter: /anaconda3/bin/python: no such file or directory.
I could now change the header again to point to /Users/myname/anaconda3/ but this would be quite tedious to do it for all commands (also it didn't quite work for jupyter-qtconsole, after changing the path I got an error with failed to start because it could not find or load the Qt platform plugin "cocoa"), any ideas?

@joportiz

This comment has been minimized.

Copy link

@joportiz joportiz commented Oct 8, 2019

I tried everything above and didn't work, then I just installed it using brew, and it all worked just fine:

brew cask install anaconda

That worked for me but I lost my virtual environments.

@msarahan msarahan reopened this Oct 8, 2019
@RyanRizzo96

This comment has been minimized.

Copy link

@RyanRizzo96 RyanRizzo96 commented Oct 8, 2019

Not working here either, I keep getting:

-bash: /Users/USER/anaconda3/bin/conda: /anaconda3/bin/python: bad interpreter: No such file or directory

Similar question asked:

https://stackoverflow.com/questions/58293755/how-to-get-conda-to-work-on-mac-os-catalina

@drankou

This comment has been minimized.

Copy link

@drankou drankou commented Oct 8, 2019

Activate zsh width:
chsh -s /bin/zsh

Copy anaconda3/ path to /Users/<my_user>/
export PATH="/Users/<my_user>/anaconda3/bin:$PATH"

Edit file: /Users/<my_user>/anaconda3/conda
Edit the first line like: #!/Users/<my_user>/anaconda3/bin/python
Save changes

/Users/<my_user>/anaconda3/bin/conda init zsh

This works for me, thanks!!!

thanks, works for me! but edit file is /Users/<my_user>/anaconda3/bin/conda

@lhnguyen102

This comment has been minimized.

Copy link

@lhnguyen102 lhnguyen102 commented Oct 8, 2019

Hi,
I might have a solution

  • Copy the folder anaconda3 located in Relocated Items to /Users/myname/
  • Open Terminal
  • Enter: export PATH=''/Users/myname/anaconda3/bin:$PATH"
  • Enter: conda init zsh

It worked!
Good luck!

Following this I was able to get conda to work. However, jupyter etc. don't work and throw bad interpreter errors bad interpreter: /anaconda3/bin/python: no such file or directory.
I could now change the header again to point to /Users/myname/anaconda3/ but this would be quite tedious to do it for all commands (also it didn't quite work for jupyter-qtconsole, after changing the path I got an error with failed to start because it could not find or load the Qt platform plugin "cocoa"), any ideas?

Hi,
I had the same issue. What I did to make it work was to create new virtual env and re-install jupyter notebook, Spyder, etc.

  • Open terminal
  • conda create -n envname
  • conda activate envname
  • conda install jupyter notebook
  • jupyter notebook

It worked!
Hope this helps!

FYI: I reinstalled anaconda while looking for the fix. So I did those steps on the reinstalled version

@bruceyanwee

This comment has been minimized.

Copy link

@bruceyanwee bruceyanwee commented Oct 9, 2019

Tried the command line trick but it says no such file or directory

yes ,command trick works on conda ,but fail on pip,jupyter etc,It show that bad interprter

@RyanRizzo96

This comment has been minimized.

Copy link

@RyanRizzo96 RyanRizzo96 commented Oct 9, 2019

Issue SOLVED, as shown here.

After you move anaconda from "Relocated Items" to ~/anaconda3, edit the first line of ~/anaconda3/bin/conda file from #!/anaconda3/bin/python to #!/Users/USERNAME/anaconda3/bin/python to reflect the change.

Hope this helps.

@parachutel

This comment has been minimized.

Copy link

@parachutel parachutel commented Oct 9, 2019

I copied /anaconda3 to /Users/my_user_name, and modified anaconda3 paths in ~/.bashrc and ~/.bash_profile to the one after copying, and then I edited the first line in ~/anaconda3/bin/conda to #!/Users/my_user_name/anaconda3/bin/python. These steps work for me as a bash user.

@bruceyanwee

This comment has been minimized.

Copy link

@bruceyanwee bruceyanwee commented Oct 9, 2019

I copied /anaconda3 to /Users/my_user_name, and modified anaconda3 paths in ~/.bashrc and ~/.bash_profile to the one after copying, and then I edited the first line in ~/anaconda3/bin/conda to #!/Users/my_user_name/anaconda3/bin/python. These steps work for me as a bash user.

but you still need to do these same thing for pip and jupyter etc,I did have no idea for this problem

@parachutel

This comment has been minimized.

Copy link

@parachutel parachutel commented Oct 9, 2019

I copied /anaconda3 to /Users/my_user_name, and modified anaconda3 paths in ~/.bashrc and ~/.bash_profile to the one after copying, and then I edited the first line in ~/anaconda3/bin/conda to #!/Users/my_user_name/anaconda3/bin/python. These steps work for me as a bash user.

but you still need to do these same thing for pip and jupyter etc,I did have no idea for this problem

I ran conda update conda after these operations, and all the prefixes (first-lines) are updated in /anaconda3/bin. I exported enviroment.yml files and reinstalled the envs from them and they work.

@duanzy47

This comment has been minimized.

Copy link

@duanzy47 duanzy47 commented Oct 9, 2019

I copied /anaconda3 to /Users/my_user_name, and modified anaconda3 paths in ~/.bashrc and ~/.bash_profile to the one after copying, and then I edited the first line in ~/anaconda3/bin/conda to #!/Users/my_user_name/anaconda3/bin/python. These steps work for me as a bash user.

but you still need to do these same thing for pip and jupyter etc,I did have no idea for this problem

I ran conda update conda after these operations, and all the prefixes (first-lines) are updated in /anaconda3/bin. I exported enviroment.yml files and reinstalled the envs from them and they work.

This "conda update conda" worked for me to solve the path problem in all files at anaconda3/bin

@bruceyanwee

This comment has been minimized.

Copy link

@bruceyanwee bruceyanwee commented Oct 9, 2019

I copied /anaconda3 to /Users/my_user_name, and modified anaconda3 paths in ~/.bashrc and ~/.bash_profile to the one after copying, and then I edited the first line in ~/anaconda3/bin/conda to #!/Users/my_user_name/anaconda3/bin/python. These steps work for me as a bash user.

but you still need to do these same thing for pip and jupyter etc,I did have no idea for this problem

I ran conda update conda after these operations, and all the prefixes (first-lines) are updated in /anaconda3/bin. I exported enviroment.yml files and reinstalled the envs from them and they work.

conda update conda works for me ,T.T

@seulert

This comment has been minimized.

Copy link

@seulert seulert commented Oct 9, 2019

I copied /anaconda3 to /Users/my_user_name, and modified anaconda3 paths in ~/.bashrc and ~/.bash_profile to the one after copying, and then I edited the first line in ~/anaconda3/bin/conda to #!/Users/my_user_name/anaconda3/bin/python. These steps work for me as a bash user.

but you still need to do these same thing for pip and jupyter etc,I did have no idea for this problem

I ran conda update conda after these operations, and all the prefixes (first-lines) are updated in /anaconda3/bin. I exported enviroment.yml files and reinstalled the envs from them and they work.

Just tried it -- doesn't work for me as a zsh user. I switched the shell right after the update to Catalina and was using bash before that.
The zshrc file already shows the new path (/User/myuser/...) but the conda update conda has no effect on the other commands such as jupyter.

@zmhhmz

This comment has been minimized.

Copy link

@zmhhmz zmhhmz commented Oct 9, 2019

I copied /anaconda3 to /Users/my_user_name, and modified anaconda3 paths in ~/.bashrc and ~/.bash_profile to the one after copying, and then I edited the first line in ~/anaconda3/bin/conda to #!/Users/my_user_name/anaconda3/bin/python. These steps work for me as a bash user.

but you still need to do these same thing for pip and jupyter etc,I did have no idea for this problem

I ran conda update conda after these operations, and all the prefixes (first-lines) are updated in /anaconda3/bin. I exported enviroment.yml files and reinstalled the envs from them and they work.

Just tried it -- doesn't work for me as a zsh user. I switched the shell right after the update to Catalina and was using bash before that.
The zshrc file already shows the new path (/User/myuser/...) but the conda update conda has no effect on the other commands such as jupyter.

switch back to bash works well

@msarahan

This comment has been minimized.

Copy link
Member

@msarahan msarahan commented Oct 9, 2019

Anaconda will be publishing a blog post later today on this issue. We are working on a tool to help users transition. We can't retroactively fix old installations, but we should be able to make new installers that avoid the problem.

Locking this issue to prevent this reply from getting buried. We will post the blog link here when it is available.

@ContinuumIO ContinuumIO locked as resolved and limited conversation to collaborators Oct 9, 2019
@msarahan

This comment has been minimized.

@msarahan msarahan closed this Oct 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.