Appleシリコン搭載MacのDocker環境でTensorflowを使う


press
Appleシリコン搭載MacのDocker環境でTensorflowを使う

Appleシリコン搭載MacのDocker環境でTensorflowを使う

Intel搭載のMacで作成したTensorflowを使ったプロジェクトを移して、M1やM2などのAppleシリコンを搭載しているMacでTensorflowを使おうとするとエラーになって使えませんでしたが、以下のAppleの公式サイトに解決方法が載っていました。

https://developer.apple.com/metal/tensorflow-plugin/

tensorflowではなくtensorflow-macosをインストールするようです。

pip install tensorflow-macos

以下のエラーが表示されましたが、numpyのバージョンを下げるとエラーが表示されなくなりました。

ERROR: Could not find a version that satisfies the requirement tensorflow-macos (from versions: none)
ERROR: No matching distribution found for tensorflow-macos

株式会社ファントムへのお問い合わせ

群馬県でPythonを使ったAIやソフトウェアを開発している株式会社ファントムが運営しています。




    Related Articles

    Django

    pipenv shellをしてもactivateできない

    pipenv shellをしてもactivateできない pipenvで作った仮想環境に出たり入ったりを繰り返していると、pipenv shellをしても以下のようにShell for UNKNOWN_VIRTUAL_E […]

    Posted on by press
    Python

    Pythonでディレクトリ内のファイルを取得する

    globモジュールを使いディレクトリ内にあるファイルを取得する方法です。 ディレクトリ構造 まずはディレクトリ内のjpgを全て取得します。 directory = (os.getcwd())で現在のディレクトリのパスを取 […]

    Posted on by press