I do not have the problem to do this on my M1 by cloning the repo and using conda to create venv with python 3.11 and installing it with pip install -e ".[gcp,test]". It installs numpy with 1.26.4.
On Thu, Mar 7, 2024 at 7:48 AM Joey Tran <joey.t...@schrodinger.com> wrote: > Hey all, > > I'm trying to get a beam python SDK dev environment going but I'm a bit > stuck. I'm just settings things up with a virtual env as specified in the > docs[1], but `pip install -e .[gcp,test]` ends with a clang error: > > ``` > clang -Wsign-compare -Wunreachable-code -fno-common -dynamic > -DNDEBUG -g -fwrapv -O3 -Wall -isysroot > /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch > -I/private/var/folders/n1/6qk3ljm97h32j1g7qg5s0prh0000gq/T/pip-build-env-0q14luhy/overlay/lib/python3.11/site-packages/numpy/core/include > -I/Users/jtran/repo/hjtran/beam/sdks/python/env/include > -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 > -c apache_beam/coders/coder_impl_row_encoders.c -o > /var/folders/n1/6qk3ljm97h32j1g7qg5s0prh0000gq/T/tmpro15g_f6.build-temp/apache_beam/coders/coder_impl_row_encoders.o > clang: error: invalid arch name '-arch > -I/private/var/folders/n1/6qk3ljm97h32j1g7qg5s0prh0000gq/T/pip-build-env-0q14luhy/overlay/lib/python3.11/site-packages/numpy/core/include' > Traceback (most recent call last): > File > "/private/var/folders/n1/6qk3ljm97h32j1g7qg5s0prh0000gq/T/pip-build-env-0q14luhy/overlay/lib/python3.11/site-packages/setuptools/_distutils/unixccompiler.py", > line 185, in _compile > self.spawn(compiler_so + cc_args + [src, '-o', obj] + > extra_postargs) > File > "/private/var/folders/n1/6qk3ljm97h32j1g7qg5s0prh0000gq/T/pip-build-env-0q14luhy/overlay/lib/python3.11/site-packages/setuptools/_distutils/ccompiler.py", > line 1041, in spawn > spawn(cmd, dry_run=self.dry_run, **kwargs) > File > "/private/var/folders/n1/6qk3ljm97h32j1g7qg5s0prh0000gq/T/pip-build-env-0q14luhy/overlay/lib/python3.11/site-packages/setuptools/_distutils/spawn.py", > line 70, in spawn > raise DistutilsExecError( > distutils.errors.DistutilsExecError: command '/usr/bin/clang' failed > with exit code 1 > > During handling of the above exception, another exception occurred: > > ``` > > I'm pretty stumped as to how to go forward. > > [1] > https://cwiki.apache.org/confluence/display/BEAM/Python+Tips#PythonTips-VirtualEnvironmentSetup >