PDM with Anaconda env on M1 ARM64 Mac tips #1882
Replies: 1 comment
-
For anyone with the same issue, I solved it with help of this Medium article:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, community!
I'm new to PDM and have been trying to install some packages with PDM on my M1 Mac. However I'm having some trouble with the ARM64 architecture, does anyone has some tips?
Context
1 - I installed PDM 2.5.3 with brew.
2 - Setup PDM and Pycharm to use the conda env with python 3.8
3 - If I run
pdm info --env
it returns the json below. I noticed that without conda the becomes "platform_machine": "ARM64",4 - If I try to install and run some packages it will get an error that wrong architecture.
Bellow I install and try to run matplotlib anb get a :
(mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')
A full command and terminal output.
5 - I can install with pip forcing the architecture with:
ARCHFLAGS="-arch arm64" pip install matplotlib==3.7.1 --compile --no-cache-dir
Questions
1 - Is it expected to be "platform_machine": "x86_64" even though my computer is ARM64?
2 - Is there a similar command for
ARCHFLAGS="-arch arm64" pip install
on PDM?Beta Was this translation helpful? Give feedback.
All reactions