Re: Need M1 Mac to Test
Galaxy Brain Human <[email protected]> Wed, 12 Jan 2022 14:55:21 -0600
| Newsgroups | gmane.comp.python.apple |
|---|---|
| Message-ID | <CABGPdTTs_WJpxOAaH+1nwiA8YuZLC_VKHtVuHkpvogk-p8jLoA@mail.gmail.com> |
--===============2284409902235723813== Content-Type: multipart/alternative; boundary="00000000000060dc0805d568ca93" --00000000000060dc0805d568ca93 Content-Type: text/plain; charset="UTF-8" Awesome, thanks for the information! I tried getting JAX to install from pip and was having a hard time. I wanted to get gpt-j to use the python that was accelerated with the neural engine from apple. On Wed, Jan 12, 2022 at 2:53 PM <[email protected]> wrote: > Python runs just fine natively on M1 Macs. The python.org installer will > install a Universal2 binary (a single binary containing both the i386 and > arm architectures). > > If you install through brew you get the architecture your brew has been > configured for. > > But there _is_ a problem with native arm Python, and that is that not all > extension packages (think: from pypi) have M1 versions available yet. This > is especially true for packages that depend on external libraries (which > may not have been ported to M1 yet). > > The way I handle this on my (M1) development machine is that I have both > versions of brew installed, which is easy because arm-brew installs into > /opt/homebrew by default and intel-brew installs into /usr/local. > > If I open a Terminal window it has /opt/homebrew/bin before /usr/local/bin > in my $PATH, and the background is white. > > If I open an iTerm window it runs in Rosetta intel emulation mode, it has > /usr/local/bin before /opt/homebrew/bin, and the background is a creamy > old-fashioned looking off-white color. > > As long as I do builds in the window of the correct color, and the correct > tools I need for building have been installed in the correct directory > everything works fine.The white windows will use python3 for arm, the cream > windows will use python3 for intel. > > -- > > Jack Jansen, <[email protected]>, http://www.cwi.nl/~jack > > If I can't dance I don't want to be part of your revolution -- Emma Goldman > > > > On 12 Jan 2022, at 17:29, Brian Herman <[email protected]> wrote: > > Do you guys need an M1 mac to test out the latest python? > I have an extra macbook air m1 I would be willing to give people access to > it so they can test the latest python and compile things or I could do it > manually. > My brother said you guys didn't have one yet. > _______________________________________________ > Pythonmac-SIG maillist - [email protected] > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG > > > --00000000000060dc0805d568ca93 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Awesome, thanks for the information!<br><div>I tried getti= ng JAX to install from pip and was having a hard time.</div><div>I wanted t= o get gpt-j to use the python that was accelerated with the neural engine f= rom apple.</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class= =3D"gmail_attr">On Wed, Jan 12, 2022 at 2:53 PM <<a href=3D"mailto:jack.= [email protected]">[email protected]</a>> wrote:<br></div><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex"><div style=3D"overflow-wrap: break-word;">= Python runs just fine natively on M1 Macs. The <a href=3D"http://python.org= " target=3D"_blank">python.org</a>=C2=A0installer will install a Universal2= binary (a single binary containing both the i386 and arm architectures).<d= iv><br></div><div>If you install through brew you get the architecture your= brew has been configured for.</div><div><br></div><div>But there _is_ a pr= oblem with native arm Python, and that is that not all extension packages (= think: from pypi) have M1 versions available yet. This is especially true f= or packages that depend on external libraries (which may not have been port= ed to M1 yet).</div><div><br></div><div>The way I handle this on my (M1) de= velopment machine is that I have both versions of brew installed, which is = easy because arm-brew installs into /opt/homebrew by default and intel-brew= installs into /usr/local.</div><div><br></div><div>If I open a Terminal wi= ndow it has /opt/homebrew/bin before /usr/local/bin in my $PATH, and the ba= ckground is white.</div><div><br></div><div>If I open an iTerm window it ru= ns in Rosetta intel emulation mode, it has /usr/local/bin before /opt/homeb= rew/bin, and the background is a creamy old-fashioned looking off-white col= or.</div><div><br></div><div>As long as I do builds in the window of the co= rrect color, and the correct tools I need for building have been installed = in the correct directory everything works fine.The white windows will use p= ython3 for arm, the cream windows will use python3 for intel.<br><div><div> <span style=3D"border-collapse:separate;color:rgb(0,0,0);font-family:Helvet= ica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal= ;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:no= ne;white-space:normal;word-spacing:0px"><div><p style=3D"margin:0px"><font = face=3D"Helvetica" size=3D"3" style=3D"font:12px Helvetica">--</font></p><p= style=3D"margin:0px"><font face=3D"Helvetica" size=3D"3" style=3D"font:12p= x Helvetica">Jack Jansen, <<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>>, <a href=3D"http://www.cwi.nl/~jack"= target=3D"_blank">http://www.cwi.nl/~jack</a></font></p><p style=3D"margin= :0px"><font face=3D"Helvetica" size=3D"3" style=3D"font:12px Helvetica">If = I can't dance I don't want to be part of your revolution -- Emma Go= ldman</font></p><br></div></span><br> </div> <div><br><blockquote type=3D"cite"><div>On 12 Jan 2022, at 17:29, Brian Her= man <<a href=3D"mailto:[email protected]" target=3D"_blank">bherman= [email protected]</a>> wrote:</div><br><div><div dir=3D"ltr">Do you guys n= eed an M1 mac to test out the latest python?<div>I have an extra macbook ai= r m1 I would be willing to give people access to it so they can test the la= test python and compile things or I could do it manually.</div><div>My brot= her said you guys didn't have one yet.</div></div> _______________________________________________<br>Pythonmac-SIG maillist = =C2=A0- =C2=A0<a href=3D"mailto:[email protected]" target=3D"_blank"= >[email protected]</a><br><a href=3D"https://mail.python.org/mailman= /listinfo/pythonmac-sig" target=3D"_blank">https://mail.python.org/mailman/= listinfo/pythonmac-sig</a><br>unsubscribe: <a href=3D"https://mail.python.o= rg/mailman/options/Pythonmac-SIG" target=3D"_blank">https://mail.python.org= /mailman/options/Pythonmac-SIG</a><br></div></blockquote></div><br></div></= div></div></blockquote></div> --00000000000060dc0805d568ca93-- --===============2284409902235723813== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Pythonmac-SIG maillist - [email protected] https://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG --===============2284409902235723813==--