GithubHelp home page GithubHelp logo

Comments (21)

soerenbrockmann avatar soerenbrockmann commented on May 27, 2024 7

Alright, I found it.

  1. Download the archive file manually as mention at the README file.
  2. Unpack it and rename all files inside x86_64/ folder. They all contain _11_0. Rename it to _10_16

Screenshot 2020-11-30 at 17 52 23

  1. Open install_venv.sh and rename those filenames (macosx_11_0 to macosx_10_16)
    arch_list_x86_64=( numpy-1.18.5-cp38-cp38-macosx_10_16_x86_64.whl grpcio-1.33.2-cp38-cp38-macosx_10_16_x86_64.whl h5py-2.10.0-cp38-cp38-macosx_10_16_x86_64.whl scipy-1.5.4-cp38-cp38-macosx_10_16_x86_64.whl tensorflow_addons-0.11.2+mlcompute-cp38-cp38-macosx_10_16_x86_64.whl )

  2. Scroll down and rename macosx_11_0 to macosx_10_16

"$python_bin" -m pip install --upgrade --force -t "$VIRTUAL_ENV/lib/python3.8/site-packages/" --no-dependencies "$package_dir"/tensorflow_macos*-cp38-cp38-macosx_10_16_$arch.whl

  1. Open terminal, go inside your tensorflow_macos folder and run
    ./install_venv.sh /Users/<your user>/tensorflow_macos_venv/

Those steps worked for me. :-D

from tensorflow_macos.

kabouzeid avatar kabouzeid commented on May 27, 2024 3

Just use --python=/usr/bin/python3 in install_venv.sh

from tensorflow_macos.

ismaproco avatar ismaproco commented on May 27, 2024 1

@kharteveld how did you the renaming? I would like to try it

from tensorflow_macos.

seibert avatar seibert commented on May 27, 2024 1

Note that pip 20.3 was released yesterday and may have fixed some of these issues:

https://pip.pypa.io/en/stable/news/#id1

from tensorflow_macos.

Aizen741 avatar Aizen741 commented on May 27, 2024 1

@SaschaHeyer @monikavila @icenando @soerenbrockmann
Dont create new Virtual Environment under Anaconda. You have to create it under Miniforge

First, get out of the anaconda env , and after you download the miniforge create the Virtual Environment under Miniforge .

Screenshot 2021-03-06 at 10 56 16 AM

Once you create Env in Miniforge this will come . So Don't Close this terminal yet. open a new terminal
Screenshot 2021-03-06 at 11 11 31 AM

Download Additional file

Screenshot 2021-03-06 at 11 05 51 AM

Downloading the Tensorflow : Download tensorflow from releases , Once you download and unzip it open the file and drag - drop install_venv into terminal under the env also add -p in the end. it will ask for the location . provide the same location as the env.

Screenshot 2021-03-06 at 11 15 16 AM

There You go . Tensorflow is working for me perfectly on m1 even in jupyter notebook too

Screenshot 2021-03-06 at 11 19 37 AM

from tensorflow_macos.

JLP04 avatar JLP04 commented on May 27, 2024

I also just started seeing this issue but I'm not sure how to fix it.

from tensorflow_macos.

kharteveld avatar kharteveld commented on May 27, 2024

The problem seems to be that all the bundled wheel files are called macos_11_0, but pip thinks big sur is macOS_10_9. I renamed all the bundled wheel files to macos_10_9 and then it worked.

from tensorflow_macos.

rnogy avatar rnogy commented on May 27, 2024

I don't think you have to rename it; the trick is just to use -t hack. So you can do like

#!/bin/bash
arch_list_x86_64=( numpy-1.18.5-cp38-cp38-macosx_11_0_x86_64.whl
                   grpcio-1.33.2-cp38-cp38-macosx_11_0_x86_64.whl       
                   h5py-2.10.0-cp38-cp38-macosx_11_0_x86_64.whl
		   scipy-1.5.4-cp38-cp38-macosx_11_0_x86_64.whl  
                   tensorflow_addons-0.11.2+mlcompute-cp38-cp38-macosx_11_0_x86_64.whl
                   tensorflow_macos-0.1a0-cp38-cp38-macosx_11_0_x86_64.whl )

for f in ${arch_list_x86_64[@]} ; do 
"$(which python)" -m pip install --upgrade -t "$(pip show pip | grep Location | cut -c 11-)" --no-dependencies --force "$f"
done

(modified from apple's install_venv.sh script)
on whatever env you're in without using apple's script (which you don't have to install under venv).

from tensorflow_macos.

monikavila avatar monikavila commented on May 27, 2024

Note that pip 20.3 was released yesterday and may have fixed some of these issues:

https://pip.pypa.io/en/stable/news/#id1

It does not solve the problem

from tensorflow_macos.

monikavila avatar monikavila commented on May 27, 2024

@soerenbrockmann did your solution work for the new MacBook Pro M1?
Also, I cannot download the files anymore. It seems that they are not available.

from tensorflow_macos.

godkaieethu avatar godkaieethu commented on May 27, 2024

@soerenbrockmann did your solution work for the new MacBook Pro M1?
Also, I cannot download the files anymore. It seems that they are not available.

I have tried, but it seems doesn't work for m1

from tensorflow_macos.

nuwansam avatar nuwansam commented on May 27, 2024

I tried the same in a brand new M1 using python 3.8. I tried installing both architecture types and I get the "is not a supported wheel on this platform" for both (for numpy), which stops the installer.

from tensorflow_macos.

soerenbrockmann avatar soerenbrockmann commented on May 27, 2024

@monikavila I am working on a MacBookPro16 8-Core Intel Core i9 :-) I haven't tested it on M1. You can find the files here:

https://github.com/apple/tensorflow_macos/releases

Screenshot 2020-12-05 at 09 54 05

However, I am facing lot's of Python dependency issue recently too. Not sure what's going on :-D

from tensorflow_macos.

monikavila avatar monikavila commented on May 27, 2024

@monikavila I am working on a MacBookPro16 8-Core Intel Core i9 :-) I haven't tested it on M1. You can find the files here:

https://github.com/apple/tensorflow_macos/releases

Screenshot 2020-12-05 at 09 54 05

However, I am facing lot's of Python dependency issue recently too. Not sure what's going on :-D

Thanks a lot!

from tensorflow_macos.

monikavila avatar monikavila commented on May 27, 2024

I tried the same in a brand new M1 using python 3.8. I tried installing both architecture types and I get the "is not a supported wheel on this platform" for both (for numpy), which stops the installer.

I tried to update to Rosetta 2 and do the whole installation again but it does not work. I also tried to change to macosx_10_16 and I get

ERROR: numpy-1.18.5-cp38-cp38-macosx_10_16_arm64.whl is not a supported wheel on this platform.

I will contact apple support. If you contact apple support also, it would be good and please let me know.

from tensorflow_macos.

icenando avatar icenando commented on May 27, 2024

I tried the same in a brand new M1 using python 3.8. I tried installing both architecture types and I get the "is not a supported wheel on this platform" for both (for numpy), which stops the installer.

I tried to update to Rosetta 2 and do the whole installation again but it does not work. I also tried to change to macosx_10_16 and I get

ERROR: numpy-1.18.5-cp38-cp38-macosx_10_16_arm64.whl is not a supported wheel on this platform.

I will contact apple support. If you contact apple support also, it would be good and please let me know.

Please do update us on how Apple responds to this. I have a feeling they will say it's not their problem and we should contact Google instead.

from tensorflow_macos.

icenando avatar icenando commented on May 27, 2024

So this worked for me: #53 (comment) .

from tensorflow_macos.

icenando avatar icenando commented on May 27, 2024

This (kind of) worked for me:

  • Anaconda is already removed. I used Anaconda_clean.

  • Removed all versions of python and related files from:

    • Applications
    • /Library/Frameworks/Python.framework/Versions
    • /usr/local/bin
  • Uninstalled Xcode

  • Restarted Mac

Checked Python version in Terminal (“python —version): Python 2.7.16 (which I’m guessing is the one that comes embedded in Big Sur.

  • Reinstalled Xcode
  • Ran Xcode-select --install from Terminal.
  • Installed tensor flow again.

Except now I can’t seem to import anything else! I’m getting pages and pages of errors trying to pip install pandas and matplotlib...

from tensorflow_macos.

kukupigs avatar kukupigs commented on May 27, 2024
  1. ./install_venv.sh /Users//tensorflow_macos_venv/

it's work.good job!

from tensorflow_macos.

SaschaHeyer avatar SaschaHeyer commented on May 27, 2024

Is there any official update on that. Issue still exist and this ticket is now open for more than 1 month.

from tensorflow_macos.

tinochan avatar tinochan commented on May 27, 2024

The solution by @Aizen741 works! It also works for Jupyter Notebook by creating a new kernel using the virtual environment under Miniforge.

from tensorflow_macos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.