Home >Backend Development >Python Tutorial >How Can I Install Python 3.7 on Apple Silicon (OSX-ARM64)?
Problem:
When attempting to create a new environment with Python 3.7 using Conda, an error arises, indicating that Python 3.7 is unavailable for osx-arm64 (Apple Silicon).
Answer:
No Native Builds Available
Python 3.7 was never officially built for osx-arm64, as Apple Silicon was released after Python 3.8 had been available for a year.
Workaround: Emulation
Immediate alternatives for using Python 3.7 on Apple Silicon systems include using emulation through Rosetta or employing container systems like Docker.
Creating osx-64 Environments
To emulate x86_64 with Rosetta, create osx-64 environments in the following manner:
YAML
An alternative is to use a YAML environment definition:
Virtualization and Parallels
Instead of emulation, virtualization solutions like Parallels can also be utilized to run x86_64 programs in a virtualized environment on Apple Silicon hardware.
Long-Term Solution
Requesting a native build for python-feedstock to include Python 3.7 for osx-arm64 is a possibility, but it's unlikely to be taken up due to Python 3.7 being in its maintenance phase and dependencies not being available.
The above is the detailed content of How Can I Install Python 3.7 on Apple Silicon (OSX-ARM64)?. For more information, please follow other related articles on the PHP Chinese website!