$ source tensorflow-metal-test/bin/activateīut it will raise error: Building wheels for collected packages: h5pyīuilding wheel for h5py (pyproject.toml). My hardware version: Apple M1-chip, OS X 12.1 Montereyįirst we shall download and install python 3.9.4 universal 64bit version from (I can’t find the original solution website) and then run (Refer this quetion): Many said that we should install miniforge for arm64 and install tensorflow-macos in this kind of “conda” (Refer this post) but I failed again. Okay then I’ll install tensorflow-macos, but another problem occurred: (base) ~ pip install tensorflow-macosĮRROR: Could not find a version that satisfies the requirement tensorflow-macos (from versions: none)ĮRROR: No matching distribution found for tensorflow-macosĪfter searching on the Internet hard for the whole morning, I found the solution. At first I used conda and reinstalled several times but after each installation I met the problem: > import tensorflow as tfĪfter searching on the Internet, I found that it is because that Tensorflow doesn’t support MacOS but only Ubuntu and Windows. Install Tensorflow on M1 MacĪs a friend of bugs who fought with Python for hundreds of times, I still stepped into trouble during my installation. Because of my little experience on Tensorflow, I compared using some example codes and didn’t carry out large-scale benchmarks. Having heard of the amazing computing power of M1-chip long before, I can’t miss a chance to try on my M1 Mac (2020 Mbp with M1 Chip) in excitement.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |