5 ms·
I have found the M1 air fine for web browsing but kind of hard to install software on. Following the instructions: ----- python -m pip install tensorflow-ma
by rozim 5y ago
I have found the M1 air fine for web browsing but kind of hard to install software on.
Following the instructions:
-----
python -m pip install tensorflow-macos
...
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy which use PEP 517 and
cannot be installed directly
-----
(base) dave@daves-air ~ % uname -a
Darwin daves-air.lan 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:31 PDT 2021; root:xnu-7195.121.3~9/RELEASE_ARM64_T8101 arm64
- qmmmur 5y agoI run everything python under Rosetta. Easiest way is to install home brew for Intel processors then make an alias to that version for managing rosetta stuff
- easton 5y agoYou’re missing out on a gigantic speed boost. If you haven’t checked lately check again, most of the big libraries have been recompiled over the last few months (tensorflow excluded apparently).
- fastball 5y agoKinda silly to use Rosetta when the whole point of this is native support for TensorFlow on M1.
- xnyan 5y agoMaybe, but lots and lots of software applications are not even close to being hardware constrained or in this specific case Rosetta constrained. If you're trying to get work done and you have the computational overhead available, this absolutely sounds like the right solution. Even if it's less efficient, I can easily imagine situations where "I need this to work without thinking about it" could win out.
- qmmmur 5y agoYeah I am not running code which is hardware constrained and numpy was a real doozy tto get working because of pep517. I found Rosetta pretty fast anyway. Certainly faster than my Ryzen 2600 on arch Linux at running the same code.
- fastball 5y agoI'm not saying "don't use Rosetta", I'm saying using Rosetta is totally pointless in this case, where literally the whole point is native M1 support.
- rvz 5y ago> I run everything python under Rosetta. So basically the software that you require to run and do your work is still not available for Apple Silicon? In this case, Apple Silicon support for Python libraries. The whole point of Apple Silicon is to supersede its Intel Mac counterparts and to run software natively with a noticeable performance increase, especially with software with high performance requirements. In the case of python users and the ecosystem around it, it is still not ready. Glad I sat that one out.
- qmmmur 5y agoThere's no need to be so angry about a hypothetical situation in which you by a laptop that you never wanted. I just prefer simplicity right now. I'm a PhD student and I don't need the code to be super fastz just need it to work right now. As it stands j just got it all to run under native so I guess my slight modicum of patience you don't have lags dividends :)
- rvz 5y ago> There's no need to be so angry about a hypothetical situation in which you by a laptop that you never wanted. Nothing hypothetical about being an early adopter and then complaining and wasting months since the November 2020 release day chaos that several software is still unavailable or unstable, the very basic software doesn't even run on the system and the excessive disk writes on the M1 quickly wears the SSD on the machine. All completely real and happened to many people since launch day. So, what's the point of buying a laptop that doesn't even run your software in the first place? Might as well stay on your existing laptop. You would rather wait N amount of months for the software to mature and use the laptop reliably for your work than to skip all of that, use your existing laptop and get a better one? (M2 Mac). Why would I want to wait for months for the developers to port their software and its library ecosystem to Apple Silicon or waste time with broken workarounds when I can use my existing laptop that already 'just works' with everything. Mind you, I actually bought the M1 MBA recently to try it out and returned it at full price due to the software ecosystem not being ready. Not only I saved my money, I >5x'd that money it in a recent investment anyway and now I'm glad I did that.
- dandiep 5y agoI skipped the tensorflow-deps and the tensorflow-macos dependencies since it was trying to downgrade a bunch of stuff: $ pip install -U tensorflow-macos --no-deps That seemed to work for me at least.
- rozim 5y agoThank you. The first time I did 'import tensorflow', the import line ran for a long time and then complained about flatbuffers being missing. Then I ran several commands to install flatbuffers - all of which I could have sworn claimed it was already there, but then I tried the import again and it worked. 'import numpy' works too so the env feels complete enough. My python binaries are coming from ~/miniforge3/bin So all is well now, thx.
- syntaxing 5y agoI run everything on miniforge. Makes everything so much better. If you have the arm version of brew, just run "brew install --cask miniforge"
- notatoad 5y ago`pip install --upgrade pip` fixed this for me. (not in tensorflow directly, but while installing something else on my M1 last week which required numpy)
- dragonwriter 5y agoPresumably actually: python -m pip install --upgrade pip just: pip install --upgrade pip Is “break pip if there is a newer version available”, at least last I checked. (It uninstalls the existing pip but can’t complete the install of the new one.)
- macintux 5y agoI’ve used the latter several times a month over the last year or so, but only since about pip 19.x, didn’t use Python much before a couple of years ago.
- dragonwriter 5y agoIt may only be older pip, or windows, or a combination. I've broken pip in quite a few venvs that way in the past though.
- bnt 5y agoOK, so we’re in mid-2021, why is installing Python THAT HARD? I think the only reason Node is so popular is because it JUST WORKS. Windows, Mac, doesn’t matter. One-click installer and you got NPM as well and access to thousands of packages.
- rewgs 5y agoFor real. I enjoy the language but I avoid it like the plague due to...everything else.
- giansegato 5y agoRespectfully disagree. Being an experienced Python dev, and a total JavaScript noob, I feel exactly the same with npm. It's ultimately just a matter of experience I guess
- ralusek 5y agoI would love to hear more from other devs regarding where we're at with M1 for development. How is Node/React development, for example. Last I heard, Postgres was good to go on native M1. I know Node 14 is good natively. Are there commonly encountered problems? I hate my 2017 MBP and am desperate to upgrade.
- mvanaltvorst 5y agoEverything webdev works great, Docker is the only thing in my workflow that is still a bit of a hassle but that is quickly improving.