2021, Installing TensorFlow 2.4, Keras, & Python 3.8 in Mac OSX Intel

Поділитися
Вставка
  • Опубліковано 6 лис 2024
  • In this video, I update on how to install TensorFlow 2.4, Keras and Python 3.8 on Mac OSX. I performed this on an Intel Mac, I will probably update in the future when I obtain an M1. See comments for some special instructions for M1's that might be necessary.
    This video is about Intel Macs, for an M1 Mac, refer to:
    • 2021, Installing Tenso...
    Code link:
    github.com/jef...
    ** Follow Me on Social Media!
    GitHub: github.com/jef...
    Twitter: / jeffheaton
    Instagram: / jeffheatondotcom
    Discord: / discord
    Patreon: / jeffheaton

КОМЕНТАРІ • 37

  • @HeatonResearch
    @HeatonResearch  3 роки тому

    If you have an M1 Mac, I have an updated video for that. ua-cam.com/video/_CO-ND1FTOU/v-deo.html

  • @Fenerli839
    @Fenerli839 3 роки тому +12

    not working on macbook m1. I get error. "The kernel appears to have died. It will restart automatically."

  • @blessinglotus
    @blessinglotus 3 роки тому +4

    This is exactly what I need. Thank you so much !

  • @esthernwogu1616
    @esthernwogu1616 3 роки тому

    This worked well for me! I already had anaconda installed but made sure to update from bash to zsh (also included the .zprofile), followed the tutorial with no issues.

  • @VARUNKUMAR-nm6pf
    @VARUNKUMAR-nm6pf Рік тому

    Great video, works in one go . Thanks for such a community help .

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

    Please cover M1 with TF

  • @chitrungbuitran1623
    @chitrungbuitran1623 3 роки тому +3

    hi, thank you for the instruction, but it has not worked for the m1 MacBook. it said that "zsh: illegal hardware instruction python" and dead kernel. Can you help me with it?

    • @amireshaq
      @amireshaq 3 роки тому

      have a look in the video at 2:30

    • @emiljiang335
      @emiljiang335 3 роки тому +1

      doesnt work for me too on the m1 macbook

    • @chitrungbuitran1623
      @chitrungbuitran1623 3 роки тому

      @@amireshaq hi, try it too but it does not work

    • @Sk3tchPad
      @Sk3tchPad 3 роки тому

      @@amireshaq he's just talking about using -zsh there, which OP is clearly using.

  • @khalidtigma7965
    @khalidtigma7965 3 роки тому

    Worked for me, thanks!

  • @konigsdagw2475
    @konigsdagw2475 3 роки тому

    Please cover about the same topic on M1

  • @neurondeep
    @neurondeep 3 роки тому +1

    can you do a tutorial for use m1 with neural engine?

  • @r.e.p.a2240
    @r.e.p.a2240 3 роки тому +2

    not working on older mac either.

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

    Worked for me but make sure you update from bash to zsh

  • @erlanggamaha4065
    @erlanggamaha4065 3 роки тому

    Didn't work in the Macbook Air (M1,2020). I got error "The kernel appears to have died. It will restart automatically."

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

    I have problem with the AVX2 FMA instruction...this not solve this problem, do you know how to solve it in MacOs BigSur??

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

    Thank you!

  • @arpitaingermany
    @arpitaingermany 3 роки тому

    Anaconda for MacBook M1 chip will be better or Miniconda?

  • @user-ou5pv2oo3i
    @user-ou5pv2oo3i 3 роки тому

    Thank you very much !

  • @NJ-mq2pz
    @NJ-mq2pz 3 роки тому

    I followed step by step and face the following error:numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject. Alr reinstall numpy and same error. Any help would be appreciated.

  • @keremdogan5792
    @keremdogan5792 3 роки тому

    I have a problem. At the end, I paste the code and run it in the jupyter. But I have an error which says dead kernel. It restarts and then same thing. How can I solve this?

  • @imanameerzeb910
    @imanameerzeb910 3 роки тому

    Hi! When I run the final code this message appears. How do I correct this?
    ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

  • @theengineered1949
    @theengineered1949 3 роки тому

    how do you make python 3 as default version. my computer still show python 2.7

  • @ktdpt3073
    @ktdpt3073 3 роки тому

    miniconda is good but it doesn't have mediaipie, I try so hard but it not work

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

    Why do I need a conda-thing? Isn't a -mvenv enough?

  • @NJ-mq2pz
    @NJ-mq2pz 3 роки тому

    I want to deregister the conda tensor flow env. In other words, I want to reverse the command "python -m ipykernel install --user --name tensorflow --display-name "Python 3.8 (tensorflow)" pls help thx

  • @reza6130
    @reza6130 3 роки тому

    Hello, please teach tensorFlow Sharp Tensor Library in C # environment in Windows Form environment.

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

    I installed this on my Intel Mac v11.7.1. I installed python v3.9.12. I also updated the tensofrlow.yml file to say python=3.9.12 and tensorflow==2.11 for latest tensorflow. when I run the initial "# What version of Python do you have?" commands here is the error I get...
    ----> 2 import tensorflow.keras
    ModuleNotFoundError: No module named 'tensorflow'
    any idea? please help.

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

      I got it to work but had to install the modules manually in the tensorflow environment...
      conda install -c conda-forge tensorflow
      pip3 install tensorflow --upgrade
      pip3 show tensorflow
      conda install -c anaconda pandas
      pip3 install pandas --upgrade
      pip3 show pandas
      conda install -c anaconda scikit-learn
      pip3 install scikit-learn --upgrade
      pip3 show scikit-learn
      after the above I was able to use the notebook...
      2022-12-19 20:59:52.432740: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
      To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
      Tensor Flow Version: 2.11.0
      Keras Version: 2.11.0
      Python 3.9.12 (main, Apr 5 2022, 01:53:17)
      [Clang 12.0.0 ]
      Pandas 1.5.2
      Scikit-Learn 1.2.0
      GPU is NOT AVAILABLE

  • @lexscarlet
    @lexscarlet 3 роки тому

    Does he have a video for this on windows?

  • @kellytsang16
    @kellytsang16 3 роки тому

    Thank you for the video. However, I got a problem in activating the tensorflow environment, could you or anyone help me with this?
    # To activate this environment, use
    #
    # $ conda activate tensorflow
    #
    # To deactivate an active environment, use
    #
    # $ conda deactivate
    (venv) ...MacBook-Air ~ % $ conda activate tensorflow
    zsh: command not found: $
    (venv) ...MacBook-Air ~ % conda activate tensorflow
    (venv) ...MacBook-Air ~ % conda activate tensorflow

    • @kellytsang16
      @kellytsang16 3 роки тому

      I tried to exit venv environment and type the command again but still it wasn’t working. What could I do to fix this?

  • @MiguelSanchez-ot9qs
    @MiguelSanchez-ot9qs 2 роки тому

    Thank you!