You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

After installation of Anaconda, this error occurs every time I open MAC terminal

Last login: Sat Dec 18 22:39:10 on ttys000

(eval):90: command not found: dirname

(eval):90: command not found: dirname

__add_sys_prefix_to_path:6: command not found: dirname

__add_sys_prefix_to_path:7: command not found: dirname


I'm using Mac pro M1. I've seen the other people encountered the same error, however I did not figure out solutions to solve it. I've checked the ~/.zshrc profile, but it seems there are nothing to change. Any help would be very appreciated!


MacBook Pro 13″, macOS 11.1

Posted on Dec 18, 2021 6:58 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 19, 2021 6:00 AM

What you read on the internet isn’t true, not about Anaconda or anything else.


There is no separate path for Python. That is your system path being scrambled.


I strongly suggest that you do not use Anaconda and remove it from your computer. This is not something appropriate for beginners. People only use it to put on their resume because it is expected from professional Python programmers. That’s why you see it in those tutorials. Said tutorials are little more than online portfolios for job hunting.


I have worked with professional programmers who use Anaconda and similar tools. They had no idea what they were doing. They were so confused about their software crashing that they purchased 5 top-of-the-line servers with 1 TB RAM each because they were certain they were running out of memory. They were just doing such important and difficult work that they needed that much RAM. Well, no. Their virtual environments were so misconfigured that they had no idea what versions of tools they were running. For months, they had been using old, buggy versions. RAM had nothing to do with it. They wasted over $100,000. Don’t be like them.

Similar questions

10 replies
Question marked as Top-ranking reply

Dec 19, 2021 6:00 AM in response to Lena_wang1218

What you read on the internet isn’t true, not about Anaconda or anything else.


There is no separate path for Python. That is your system path being scrambled.


I strongly suggest that you do not use Anaconda and remove it from your computer. This is not something appropriate for beginners. People only use it to put on their resume because it is expected from professional Python programmers. That’s why you see it in those tutorials. Said tutorials are little more than online portfolios for job hunting.


I have worked with professional programmers who use Anaconda and similar tools. They had no idea what they were doing. They were so confused about their software crashing that they purchased 5 top-of-the-line servers with 1 TB RAM each because they were certain they were running out of memory. They were just doing such important and difficult work that they needed that much RAM. Well, no. Their virtual environments were so misconfigured that they had no idea what versions of tools they were running. For months, they had been using old, buggy versions. RAM had nothing to do with it. They wasted over $100,000. Don’t be like them.

Dec 18, 2021 8:01 AM in response to Lena_wang1218

This is a user-to-user support forum for Apple products. Anaconda is not an Apple product. You are unlikely to find anyone here who uses it.


My guess is that your PATH is wrong. In that second line, you are deleting your entire path and replacing it with the path to what appears to be a 3rd party installation of Python3. But that isn't how a path works. You don't put the full path to an executable. A PATH environment variable should specify one or more directories that will be used to find any executable. And that "or more" part is very important.


Look towards the end to see how Anaconda changes the path. That is the correct way. You prepend your custom path to the existing path. But you've already destroyed your existing path, so nothing else is going to work.


Unfortunately, I can't tell you what your PATH should be other than it definitely shouldn't be that. I'm not familiar with whatever Python installation you are using.


Why do you even want to run Anaconda to begin with? That is a very advanced, virtual Python environment. It is for people who need, or think they need, to run multiple different Python versions. But even then, in most cases, they don't need that. They are only using Anaconda because that's what hip Python coders do and they are all looking for better jobs and need Anaconda on their resumes.

Dec 19, 2021 1:05 AM in response to etresoft

Thanks for your help ! The fact is that I major in medicine, and I'm just trying to learn how to use tensorflow for deep learning. And some tutorials told me Anaconda would be convenient.


I'm not sure about the correct way of setting Python PATH, the way Anaconda changes the path is far too complicated for me......


I think I'll try to ask this question on other forum regarding the use of Anaconda. Thanks anyway !

Dec 19, 2021 8:31 AM in response to Lena_wang1218

It looks like Tensorflow really doesn't have good Mac support (https://www.tensorflow.org/install) as there is no GPU support not the Mac. I would recommend Google's Colaboratory project as mentioned in the site above. That will also give you some exposure to the Jupyter notebook environment which is also very desirable in these kinds of medical ML communities. You might also consider trying this on AWS (https://aws.amazon.com/tensorflow/). Just make sure to say on the free tier. Google Cloud has similar services. They might be challenging to setup however.

After installation of Anaconda, this error occurs every time I open MAC terminal

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