DEV Community

Cover image for A tip for installing Tensorflow on my M1 Macbook Pro with fish shell.
Yasuhiro Nagata
Yasuhiro Nagata

Posted on • Edited on

2 1

A tip for installing Tensorflow on my M1 Macbook Pro with fish shell.

I wrote about How I installed Tensorflow on my M1 Macbook Pro with fish shell.

EDIT: If you use version control libraries like pyenv, you should install miniforge3 by using them

and no need to read this article.
This instead is helpful😎

Here’s the official reference to follow.

Tensorflow Plugin - Metal - Apple Developer
But, I couldn’t call conda , when installing the TensorFlow dependencies.

I know that conda locates /Users/yas/miniforge3/bin , so I call its init command for fish shell.

conda init fish
Enter fullscreen mode Exit fullscreen mode

Then I got the three lines of codes in /Users/yas/.config/fish/config.fish

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
eval /Users/yas/miniforge3/bin/conda "shell.fish" "hook" $argv | source
# <<< conda initialize <<<
Enter fullscreen mode Exit fullscreen mode

After restarting the shell, I could call conda from anywhere and completed the installation.😌

Heroku

Built for developers, by developers.

Whether you're building a simple prototype or a business-critical product, Heroku's fully-managed platform gives you the simplest path to delivering apps quickly — using the tools and languages you already love!

Learn More

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

If this post resonated with you, feel free to hit ❤️ or leave a quick comment to share your thoughts!

Okay