ld: warning: ignoring file /Users/bhavyamishra/opt/anaconda3/lib/libpython3.9.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Hi Bhavya,
This might be linked to a problem with system version compatibility on Mac which makes compilers built shared libraries for a different architecture.
pypa/pip#10793 and actions/setup-python#469 reports similar problems.
You might want to adapt the SYSTEM_VERSION_COMPAT environement variable
for your terminal session (or probably even globally to ease
development generally)
by setting its values to (at least, based on the
piece of source code given above) 0, 1 or 2.