Skip to content

Error when installing conda environment hri on mac

When running "conda env create -f environment_hri.yml --name hri" I got the following error: CCompilerOpt._cache_write[796] : write cache to path -> /private/var/folders/nd/jwrydhcj1q9fy32wp8xg1c6h0000gn/T/pip-install-0a44x2gh/numpy_751ec3cee1a849b087f2ace052365f54/build/temp.macosx-11.0-arm64-3.8/ccompiler_opt_cache_clib.py error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/hri3/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/hri3/include -arch arm64 -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Ibuild/src.macosx-11.0-arm64-3.8/numpy/core/src/_simd -Inumpy/core/include -Ibuild/src.macosx-11.0-arm64-3.8/numpy/core/include/numpy -Ibuild/src.macosx-11.0-arm64-3.8/numpy/distutils/include -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/src/_simd -I/opt/miniconda3/envs/hri3/include/python3.8 -Ibuild/src.macosx-11.0-arm64-3.8/numpy/core/src/common -Ibuild/src.macosx-11.0-arm64-3.8/numpy/core/src/npymath -c build/src.macosx-11.0-arm64-3.8/numpy/core/src/_simd/_simd.dispatch.c -o build/temp.macosx-11.0-arm64-3.8/build/src.macosx-11.0-arm64-3.8/numpy/core/src/_simd/_simd.dispatch.o -MMD -MF build/temp.macosx-11.0-arm64-3.8/build/src.macosx-11.0-arm64-3.8/numpy/core/src/_simd/_simd.dispatch.o.d -Werror" failed with exit status 1 [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for numpy
  Failed to build numpy
  ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (numpy)
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

failed

CondaEnvException: Pip failed

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information