Terminal: (base) before Computer-name; command issues

When using the Terminal app, I've noticed that (base) appears in the following location:

(base) Computer-name:current-directory-name short-user-name$


I recently installed the Anaconda distribution for machine learning, and have noticed that certain commands ( e.g. clear ) are giving the following error:

-bash: /anaconda2/bin/clear: Permission denied


Could this be an issue with the command paths? Potential fixes ( e.g. uninstall software )?

MacBook Air 11", macOS 10.13

Posted on Mar 17, 2019 12:11 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 17, 2019 2:15 AM

Don’t install Anaconda 2.

In 2019, there is no reason to use Python 2 unless you have to deal with legacy code. Python 2 has been deprecated for years.

I have installed and use Anaconda 3 without any odd issues.


About path, your example with the clear command shows that the Anaconda bin folder was added at the start of the PATH environment variable.That would work fine except that there was a file named clear in the Anaconda distribution bin folder; and that was not executable.

Similar questions

3 replies
Question marked as Top-ranking reply

Mar 17, 2019 2:15 AM in response to d19f27

Don’t install Anaconda 2.

In 2019, there is no reason to use Python 2 unless you have to deal with legacy code. Python 2 has been deprecated for years.

I have installed and use Anaconda 3 without any odd issues.


About path, your example with the clear command shows that the Anaconda bin folder was added at the start of the PATH environment variable.That would work fine except that there was a file named clear in the Anaconda distribution bin folder; and that was not executable.

Mar 17, 2019 12:28 AM in response to d19f27

I uninstalled the apps related to the Anaconda distribution in /Applications and ~, and deleted a directory called /anaconda2, and both the (base) label and the command issue are no longer apparent. I think the problem may be solved, but am still curious as to what exactly caused this ( i.e. why does the Terminal app display (base), and if paths in /anaconda2 were over-riding /usr/bin? )?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal: (base) before Computer-name; command issues

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.