TensorFlow: Mac M1/M2: Conda | tensorflow-deps - PackagesNotFoundError

Поділитися
Вставка
  • Опубліковано 6 лис 2024

КОМЕНТАРІ • 31

  • @HeatonResearch
    @HeatonResearch  Рік тому +2

    Updated version for 2023: ua-cam.com/video/o4-bI_iZKPA/v-deo.html

  • @Nohandle999
    @Nohandle999 2 роки тому

    I have been stuck on this for a while and never thought that the issue was that anaconda was still using the Intel architecture. Your explanation and solution worked perfectly. Thanks!

  • @sid6041
    @sid6041 Рік тому

    YOU ARE THE GREATEST. I've been trying to solve this issue for hours and you saved me. Thank you sir!!!

  • @ROCK962
    @ROCK962 Рік тому

    You are the man! It took me 4 days to install tensorflow until I saw this

  • @chiefdefenseofficer4510
    @chiefdefenseofficer4510 2 роки тому +1

    holy what.. that did it. The explanation, the logic. goodness... Thank you sir. Happy to subscribe.

  • @markxiangli5266
    @markxiangli5266 Рік тому

    Thank you!!! I was going crazy on figuring out that error message!

  • @azadehbayani9454
    @azadehbayani9454 Рік тому

    it helped me a lot, saving a million years to find the answer! thank you a billion times! :D

  • @gregumstead6103
    @gregumstead6103 7 місяців тому

    My issue comes on the next step regarding the tensorflow-metal install, MacbookPro M3Max

  • @pablouribe1522
    @pablouribe1522 2 роки тому +1

    Thanks Jeff!

  • @mllearning3637
    @mllearning3637 2 роки тому +3

    This video ends at installation of tensorflow-deps. After this i guess we also need tensorflow-macos and tensorflow-metal. I did that, however jupyter notebook still throws
    ModuleNotFoundError: No module named 'tensorflow'
    and on CLI it says:
    RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
    RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
    ImportError: numpy.core._multiarray_umath failed to import
    ImportError: numpy.core.umath failed to import
    TypeError: Unable to convert function return value to a Python type! The signature was
    () -> handle

    • @anchewei
      @anchewei 2 роки тому

      You need to upgrade your numpy with pip

    • @mllearning3637
      @mllearning3637 2 роки тому

      @@anchewei It was not related to numpy, i got it to work using miniforge for arm64

  • @ibrahimkarabayir8963
    @ibrahimkarabayir8963 11 місяців тому

    If you have older than M1, here is the instructions (the last step is critical):
    Install Miniforge
    Miniforge
    conda create -n your_env python=3.8.8
    conda activate your_env
    python -m pip install tensorflow
    SYSTEM_VERSION_COMPAT=0 pip install tensorflow-macos tensorflow-metal

  • @mindcafe2176
    @mindcafe2176 2 роки тому +1

    Thank you for the great instructional video!
    When trying to augment image data using Keras preprocessing layers (by making the preprocessing layers part of your model), I've noticed that M1Max is very slow (slower than Google Colab) and when using larger dataset, kernel dies. Is that natural apple metal?
    Also, can we use mixed precision with apple metal?
    Thank you.

  • @markxiangli5266
    @markxiangli5266 Рік тому

    Also the only problem I had was uninstalling anaconda. I followed the official website instructions to uninstall. Downloaded the M1 version anaconda, but I keep getting errors saying anaconda was already installed. used this "sudo rm -rf /opt/anaconda3" and it worked...

  • @lzdddd
    @lzdddd 2 роки тому

    THank you. Very important point!

  • @farleylai1102
    @farleylai1102 2 роки тому +1

    Or simply switch to PyTorch when its M1 support is now official through anaconda?

  • @Cfz4630
    @Cfz4630 2 роки тому

    Please I need help : I followed all the steps and when I want to check the platform in the 2cases; (MacAir M2 Silicon), when I type platform.platform >> why do I have this :

  • @dkishore599
    @dkishore599 2 роки тому

    Hi Jeff,
    I purchased my M1 MacBook Pro 14. please help me which one I should install Miniconda Or Miniforge

  • @Leo-we7jo
    @Leo-we7jo 2 роки тому +1

    Thanks very much;)

  • @imoonight
    @imoonight Рік тому

    You saved my life!!!

  • @calvinkoung
    @calvinkoung 2 роки тому

    Hi~Jeff, when i tried to import tensorflow on macbook air M2 chip, i had a error that “ illegal hardware instruction “. Can you help me solve this problem ?

  • @mangmong5823
    @mangmong5823 Рік тому

    Thank you so much!!

  • @databridgeconsultants9163
    @databridgeconsultants9163 2 роки тому

    Thank You very much

  • @obrien8228
    @obrien8228 Рік тому

    Thanks!

  • @emilioguzman98
    @emilioguzman98 Рік тому +1

    2022-12-15 18:18:34.445783: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:306] Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.
    2022-12-15 18:18:34.445803: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:272] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 0 MB memory) -> physical PluggableDevice (device: 0, name: METAL, pci bus id: )
    when running tf then after run into a
    NotFoundError when running 100 epochs
    anyone have advice to resolve?

  • @georgesotiropoulos9935
    @georgesotiropoulos9935 2 роки тому

    Great!!!

  • @gnatsson1629
    @gnatsson1629 Рік тому

    Thanks so much!

  • @mikhaelsantosfernandez6377
    @mikhaelsantosfernandez6377 Рік тому

    Great!