Discuss Scratch

Chiroyce
Scratcher
1000+ posts

Python on ARM64 M1

Python Website wrote:

As of 3.9.1, Python now fully supports building and running on macOS 11.0 (Big Sur) and on Apple Silicon Macs (based on the ARM64 architecture). A new universal build variant, universal2, is now available to natively support both ARM64 and Intel 64 in one set of executables. Binaries can also now be built on current versions of macOS to be deployed on a range of older macOS versions (tested to 10.9) while making some newer OS functions and options conditionally available based on the operating system version in use at runtime (“weaklinking”).
(source)
well they lied

I recently (right now) tried installing Python 3.9.5 on my MacBook with the new M1 Silicon chip that runs ARM64 (unlike Intel & AMDs x86_64)

I went here, scrolled down and I selected the

“macOS 64-bit universal2 installer” for “macOS 10.9 and later, including macOS 11 Big Sur on Apple Silicon”

Well, I waited for it to finish downloading the .pkg file, then I clicked on it - it asked me to install Rosetta2




I was confused, I selected the version of Python specifically built for macOS Big Sur and Apple Silicon, I had both of them - and yet it wants me to run it as an x86_64 program. I DO NOT want to install Rosetta 2 as I want Python to run fast and not translated, especially because it is capable of doing so.

I click “Not Now” and it simply says “Installing Python requires Rosetta to be installed”.




stackoverflow with exact same question but unrelated asnwers https://stackoverflow.com/questions/65559632/how-can-i-run-python-3-9-1-natively-on-m1-mac?


I INSTALLED Rosetta 2 and it works just fine now, thanks.

Last edited by Chiroyce (Sept. 8, 2021 02:57:20)








April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
Chiroyce
Scratcher
1000+ posts

Python on ARM64 M1

[removed]

Last edited by Chiroyce (May 8, 2021 11:32:19)








April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
gosoccerboy5
Scratcher
1000+ posts

Python on ARM64 M1

You don't have to download Python right? Just download vscode and the necessary extension, or use replit, or some other online IDE. Even atom will work, I think

Chiroyce
Scratcher
1000+ posts

Python on ARM64 M1

gosoccerboy5 wrote:

Just download vscode and the necessary extension, or use replit, or some other online IDE. Even atom will work, I think
Online IDE - no
VSCODE - no

the python extension wrote:

Quick start

Step 1. Install a supported version of Python on your system (note: that the system install of Python on macOS is not supported).
Step 2. Install the Python extension for Visual Studio Code.
Step 3. Open or create a Python file and start coding!
source

atom - online? no
PyCharm - YES (but requires Python ;-; )

Last edited by Chiroyce (May 8, 2021 12:24:17)








April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
9gr
Scratcher
1000+ posts

Python on ARM64 M1

try using homebrew to install python?

1. download homebrew
2. run below code in terminal
brew install python

not tested use at your own risk

Last edited by 9gr (May 8, 2021 12:34:48)

Chiroyce
Scratcher
1000+ posts

Python on ARM64 M1

9gr wrote:

not tested use at your own risk
thats the problem
edit: 9gr plz confirm if this is good info

Last edited by Chiroyce (May 8, 2021 12:54:21)








April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
9gr
Scratcher
1000+ posts

Python on ARM64 M1

Chiroyce wrote:

plz confirm if this is good info
yeah. if you want exact instructions use this
Chiroyce
Scratcher
1000+ posts

Python on ARM64 M1

I used x86 Python 3.9.6 on M1 via Rosetta 2, so now should I install 3.10's M1 version? I'm waiting for 3.10 as 3.9.6 is still in beta.







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence

Powered by DjangoBB