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

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs