question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip install on raspberry pi

See original GitHub issue

no idea here… tried to install the .whl for blis and spacy and build locally but nothing is working…

here is my error when trying to install with pip3

`pi@raspberrypi:~ $ sudo pip3 install spacy -U Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple/, https://www.piwheels.org/simple Collecting spacy Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/18/db/499f374339b522b6618234b93f25d2990692795ccce3152519ccc508586c/spacy-2.3.2.tar.gz (5.9MB) 100% |████████████████████████████████| 5.9MB 74kB/s Installing build dependencies … error Complete output from command /usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-gezmrl9i --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.mirrors.ustc.edu.cn/simple/ --extra-index-url https://www.piwheels.org/simple – setuptools wheel cython>=0.25 cymem>=2.0.2,<2.1.0 preshed>=3.0.2,❤️.1.0 murmurhash>=0.28.0,<1.1.0 thinc==7.4.1: Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple/, https://www.piwheels.org/simple, https://www.piwheels.org/simple Collecting setuptools Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0xb52dd390>: Failed to establish a new connection: [Errno -2] Name or service not known’)‘: /pypi/web/simple/setuptools/ Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/35/f7/f86e670ebd628f447845798aa3b6a1b6da235941a1591d664d718aac171c/setuptools-50.1.0-py3-none-any.whl (784kB) Collecting wheel Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/a7/00/3df031b3ecd5444d572141321537080b40c1c25e1caa3d86cdd12e5e919c/wheel-0.35.1-py2.py3-none-any.whl Collecting cython>=0.25 Using cached https://www.piwheels.org/simple/cython/Cython-0.29.21-cp37-cp37m-linux_armv7l.whl Collecting cymem<2.1.0,>=2.0.2 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0xb52b7970>: Failed to establish a new connection: [Errno -2] Name or service not known’)‘: /pypi/web/simple/cymem/ Downloading https://www.piwheels.org/simple/cymem/cymem-2.0.3-cp37-cp37m-linux_armv7l.whl (135kB) Collecting preshed<3.1.0,>=3.0.2 Downloading https://www.piwheels.org/simple/preshed/preshed-3.0.2-cp37-cp37m-linux_armv7l.whl (547kB) Collecting murmurhash<1.1.0,>=0.28.0 Downloading https://www.piwheels.org/simple/murmurhash/murmurhash-1.0.2-cp37-cp37m-linux_armv7l.whl (79kB) Collecting thinc==7.4.1 Downloading https://www.piwheels.org/simple/thinc/thinc-7.4.1-cp37-cp37m-linux_armv7l.whl (5.0MB) Collecting blis<0.5.0,>=0.4.0 (from thinc==7.4.1) Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/98/5a/f9b8a78e3d1fdde1b0215413d88ab55d907ab81f95b62418a6e9cda30dec/blis-0.4.1.tar.gz Collecting tqdm<5.0.0,>=4.10.0 (from thinc==7.4.1) Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/28/7e/281edb5bc3274dfb894d90f4dbacfceaca381c2435ec6187a2c6f329aed7/tqdm-4.48.2-py2.py3-none-any.whl Collecting wasabi<1.1.0,>=0.0.9 (from thinc==7.4.1) Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/1b/10/55f3cf6b52cc89107b3e1b88fcf39719392b377a3d78ca61da85934d0d10/wasabi-0.8.0-py3-none-any.whl Collecting catalogue<1.1.0,>=0.0.7 (from thinc==7.4.1) Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/6c/f9/9a5658e2f56932e41eb264941f9a2cb7f3ce41a80cb36b2af6ab78e2f8af/catalogue-1.0.0-py2.py3-none-any.whl Collecting numpy>=1.7.0 (from thinc==7.4.1) Downloading https://www.piwheels.org/simple/numpy/numpy-1.19.1-cp37-cp37m-linux_armv7l.whl (10.5MB) Collecting plac<1.2.0,>=0.9.6 (from thinc==7.4.1) Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/86/85/40b8f66c2dd8f4fd9f09d59b22720cffecf1331e788b8a0cab5bafb353d1/plac-1.1.3-py2.py3-none-any.whl Collecting srsly<1.1.0,>=0.0.6 (from thinc==7.4.1) Downloading https://www.piwheels.org/simple/srsly/srsly-1.0.2-cp37-cp37m-linux_armv7l.whl (507kB) Collecting importlib-metadata>=0.20; python_version < “3.8” (from catalogue<1.1.0,>=0.0.7->thinc==7.4.1) Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/8e/58/cdea07eb51fc2b906db0968a94700866fc46249bdc75cac23f9d13168929/importlib_metadata-1.7.0-py2.py3-none-any.whl Collecting zipp>=0.5 (from importlib-metadata>=0.20; python_version < “3.8”->catalogue<1.1.0,>=0.0.7->thinc==7.4.1) Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/b2/34/bfcb43cc0ba81f527bc4f40ef41ba2ff4080e047acb0586b56b3d017ace4/zipp-3.1.0-py3-none-any.whl Building wheels for collected packages: blis Running setup.py bdist_wheel for blis: started Running setup.py bdist_wheel for blis: finished with status ‘error’ Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file=’/tmp/pip-install-u4wbn099/blis/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))" bdist_wheel -d /tmp/pip-wheel-k6jc42hl --python-tag cp37: BLIS_COMPILER? None running bdist_wheel running build running build_py creating build creating build/lib.linux-armv7l-3.7 creating build/lib.linux-armv7l-3.7/blis copying blis/benchmark.py -> build/lib.linux-armv7l-3.7/blis copying blis/init.py -> build/lib.linux-armv7l-3.7/blis copying blis/about.py -> build/lib.linux-armv7l-3.7/blis creating build/lib.linux-armv7l-3.7/blis/tests copying blis/tests/test_dotv.py -> build/lib.linux-armv7l-3.7/blis/tests copying blis/tests/common.py -> build/lib.linux-armv7l-3.7/blis/tests copying blis/tests/test_gemm.py -> build/lib.linux-armv7l-3.7/blis/tests copying blis/tests/init.py -> build/lib.linux-armv7l-3.7/blis/tests copying blis/py.pyx -> build/lib.linux-armv7l-3.7/blis copying blis/cy.pyx -> build/lib.linux-armv7l-3.7/blis copying blis/cy.pxd -> build/lib.linux-armv7l-3.7/blis copying blis/init.pxd -> build/lib.linux-armv7l-3.7/blis running build_ext unix py_compiler gcc {‘BLIS_ARCH’: ‘generic’, ‘HOSTNAME’: ‘aa9d42588791’, ‘SSL_CERT_FILE’: ‘/opt/internal/certs.pem’, ‘TERM’: ‘xterm’, ‘OLDPWD’: ‘/usr/local/repos/cython-blis’, ‘LD_LIBRARY_PATH’: ‘/opt/rh/devtoolset-2/root/usr/lib64:/opt/rh/devtoolset-2/root/usr/lib:/usr/local/lib64:/usr/local/lib’, ‘LS_COLORS’: ‘no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:.cmd=00;32:.exe=00;32:.com=00;32:.btm=00;32:.bat=00;32:.sh=00;32:.csh=00;32:.tar=00;31:.tgz=00;31:.arj=00;31:.taz=00;31:.lzh=00;31:.zip=00;31:.z=00;31:.Z=00;31:.gz=00;31:.bz2=00;31:.bz=00;31:.tz=00;31:.rpm=00;31:.cpio=00;31:.jpg=00;35:.gif=00;35:.bmp=00;35:.xbm=00;35:.xpm=00;35:.png=00;35:.tif=00;35:’, ‘VIRTUAL_ENV’: ‘/usr/local/repos/cython-blis/env3.6’, ‘PATH’: ‘/usr/local/repos/cython-blis/env3.6/bin:/opt/rh/devtoolset-2/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin’, ‘PWD’: ‘/usr/local/repos/cython-blis/flame-blis’, ‘BLIS_ARCh’: ‘generic’, ‘LANG’: ‘en_US.UTF-8’, ‘HOME’: ‘/root’, ‘SHLVL’: ‘2’, ‘LANGUAGE’: ‘en_US.UTF-8’, ‘BLIS_ARC’: ‘generic’, ‘AUDITWHEEL_PLAT’: ‘manylinux1_x86_64’, ‘PKG_CONFIG_PATH’: ‘/usr/local/lib/pkgconfig’, ‘LESSOPEN’: ‘|/usr/bin/lesspipe.sh %s’, ‘G_BROKEN_FILENAMES’: ‘1’, ‘’: ‘/usr/local/repos/cython-blis/env3.6/bin/python’} gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/config/generic/bli_cntx_init_generic.c -o /tmp/tmpquwn6ckr/bli_cntx_init_generic.o -O3 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/config/haswell/bli_cntx_init_haswell.c -o /tmp/tmpquwn6ckr/bli_cntx_init_haswell.o -O3 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/config/penryn/bli_cntx_init_penryn.c -o /tmp/tmpquwn6ckr/bli_cntx_init_penryn.o -O3 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/config/piledriver/bli_cntx_init_piledriver.c -o /tmp/tmpquwn6ckr/bli_cntx_init_piledriver.o -O3 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/config/sandybridge/bli_cntx_init_sandybridge.c -o /tmp/tmpquwn6ckr/bli_cntx_init_sandybridge.o -O3 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/config/steamroller/bli_cntx_init_steamroller.c -o /tmp/tmpquwn6ckr/bli_cntx_init_steamroller.o -O3 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/kernels/zen/1/bli_amaxv_zen_int.c -o /tmp/tmpquwn6ckr/bli_amaxv_zen_int.o -O3 -mavx2 -mfma -mfpmath=sse -march=core-avx2 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc: error: unrecognized -march target: core-avx2 gcc: note: valid arguments are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5t armv5e armv5te armv5tej armv6 armv6j armv6k armv6z armv6kz armv6zk armv6t2 armv6-m armv6s-m armv7 armv7-a armv7ve armv7-r armv7-m armv7e-m armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8-m.base armv8-m.main armv8-r iwmmxt iwmmxt2 native gcc: error: missing argument to ‘-march=’ gcc: error: unrecognized command line option ‘-mavx2’ gcc: error: unrecognized command line option ‘-mfma’ gcc: error: unrecognized command line option ‘-mfpmath=sse’ Traceback (most recent call last): File “<string>”, line 1, in <module> File “/tmp/pip-install-u4wbn099/blis/setup.py”, line 277, in <module> “Topic :: Scientific/Engineering”, File “/usr/local/lib/python3.7/dist-packages/setuptools/init.py”, line 163, in setup return distutils.core.setup(**attrs) File “/usr/lib/python3.7/distutils/core.py”, line 148, in setup dist.run_commands() File “/usr/lib/python3.7/distutils/dist.py”, line 966, in run_commands self.run_command(cmd) File “/usr/lib/python3.7/distutils/dist.py”, line 985, in run_command cmd_obj.run() File “/usr/lib/python3/dist-packages/wheel/bdist_wheel.py”, line 188, in run self.run_command(‘build’) File “/usr/lib/python3.7/distutils/cmd.py”, line 313, in run_command self.distribution.run_command(command) File “/usr/lib/python3.7/distutils/dist.py”, line 985, in run_command cmd_obj.run() File “/usr/lib/python3.7/distutils/command/build.py”, line 135, in run self.run_command(cmd_name) File “/usr/lib/python3.7/distutils/cmd.py”, line 313, in run_command self.distribution.run_command(command) File “/usr/lib/python3.7/distutils/dist.py”, line 985, in run_command cmd_obj.run() File “/usr/lib/python3.7/distutils/command/build_ext.py”, line 340, in run self.build_extensions() File “/tmp/pip-install-u4wbn099/blis/setup.py”, line 103, in build_extensions objects = self.compile_objects(compiler.split(“-”)[0], arch, OBJ_DIR) File “/tmp/pip-install-u4wbn099/blis/setup.py”, line 188, in compile_objects objects.append(self.build_object(env=env, **spec)) File “/tmp/pip-install-u4wbn099/blis/setup.py”, line 201, in build_object subprocess.check_call(command, cwd=BLIS_DIR) File “/usr/lib/python3.7/subprocess.py”, line 347, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command ‘[‘gcc’, ‘-c’, ‘/tmp/pip-install-u4wbn099/blis/blis/_src/kernels/zen/1/bli_amaxv_zen_int.c’, ‘-o’, ‘/tmp/tmpquwn6ckr/bli_amaxv_zen_int.o’, ‘-O3’, ‘-mavx2’, ‘-mfma’, ‘-mfpmath=sse’, ‘-march=core-avx2’, ‘-fPIC’, ‘-std=c99’, ‘-D_POSIX_C_SOURCE=200112L’, ‘-DBLIS_VERSION_STRING=“0.5.1”’, ‘-DBLIS_IS_BUILDING_LIBRARY’, ‘-Iinclude/linux-x86_64’, ‘-I./frame/3/’, ‘-I./frame/ind/ukernels/’, ‘-I./frame/1m/’, ‘-I./frame/1f/’, ‘-I./frame/1/’, ‘-I./frame/include’, ‘-I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64’]’ returned non-zero exit status 1.

----------------------------------------
Failed building wheel for blis
Running setup.py clean for blis

Failed to build blis Installing collected packages: setuptools, wheel, cython, cymem, murmurhash, preshed, numpy, blis, tqdm, wasabi, zipp, importlib-metadata, catalogue, plac, srsly, thinc Running setup.py install for blis: started Running setup.py install for blis: finished with status ‘error’ Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-install-u4wbn099/blis/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-record-ah1rmq98/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-gezmrl9i --compile: BLIS_COMPILER? None running install running build running build_py creating build creating build/lib.linux-armv7l-3.7 creating build/lib.linux-armv7l-3.7/blis copying blis/benchmark.py -> build/lib.linux-armv7l-3.7/blis copying blis/init.py -> build/lib.linux-armv7l-3.7/blis copying blis/about.py -> build/lib.linux-armv7l-3.7/blis creating build/lib.linux-armv7l-3.7/blis/tests copying blis/tests/test_dotv.py -> build/lib.linux-armv7l-3.7/blis/tests copying blis/tests/common.py -> build/lib.linux-armv7l-3.7/blis/tests copying blis/tests/test_gemm.py -> build/lib.linux-armv7l-3.7/blis/tests copying blis/tests/init.py -> build/lib.linux-armv7l-3.7/blis/tests copying blis/py.pyx -> build/lib.linux-armv7l-3.7/blis copying blis/cy.pyx -> build/lib.linux-armv7l-3.7/blis copying blis/cy.pxd -> build/lib.linux-armv7l-3.7/blis copying blis/init.pxd -> build/lib.linux-armv7l-3.7/blis running build_ext unix py_compiler gcc {‘BLIS_ARCH’: ‘generic’, ‘HOSTNAME’: ‘aa9d42588791’, ‘SSL_CERT_FILE’: ‘/opt/internal/certs.pem’, ‘TERM’: ‘xterm’, ‘OLDPWD’: ‘/usr/local/repos/cython-blis’, ‘LD_LIBRARY_PATH’: ‘/opt/rh/devtoolset-2/root/usr/lib64:/opt/rh/devtoolset-2/root/usr/lib:/usr/local/lib64:/usr/local/lib’, ‘LS_COLORS’: ‘no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:.cmd=00;32:.exe=00;32:.com=00;32:.btm=00;32:.bat=00;32:.sh=00;32:.csh=00;32:.tar=00;31:.tgz=00;31:.arj=00;31:.taz=00;31:.lzh=00;31:.zip=00;31:.z=00;31:.Z=00;31:.gz=00;31:.bz2=00;31:.bz=00;31:.tz=00;31:.rpm=00;31:.cpio=00;31:.jpg=00;35:.gif=00;35:.bmp=00;35:.xbm=00;35:.xpm=00;35:.png=00;35:.tif=00;35:’, ‘VIRTUAL_ENV’: ‘/usr/local/repos/cython-blis/env3.6’, ‘PATH’: ‘/usr/local/repos/cython-blis/env3.6/bin:/opt/rh/devtoolset-2/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin’, ‘PWD’: ‘/usr/local/repos/cython-blis/flame-blis’, ‘BLIS_ARCh’: ‘generic’, ‘LANG’: ‘en_US.UTF-8’, ‘HOME’: ‘/root’, ‘SHLVL’: ‘2’, ‘LANGUAGE’: ‘en_US.UTF-8’, ‘BLIS_ARC’: ‘generic’, ‘AUDITWHEEL_PLAT’: ‘manylinux1_x86_64’, ‘PKG_CONFIG_PATH’: ‘/usr/local/lib/pkgconfig’, ‘LESSOPEN’: ‘|/usr/bin/lesspipe.sh %s’, ‘G_BROKEN_FILENAMES’: ‘1’, ‘’: ‘/usr/local/repos/cython-blis/env3.6/bin/python’} gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/config/generic/bli_cntx_init_generic.c -o /tmp/tmpzs8c7_xl/bli_cntx_init_generic.o -O3 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/config/haswell/bli_cntx_init_haswell.c -o /tmp/tmpzs8c7_xl/bli_cntx_init_haswell.o -O3 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/config/penryn/bli_cntx_init_penryn.c -o /tmp/tmpzs8c7_xl/bli_cntx_init_penryn.o -O3 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/config/piledriver/bli_cntx_init_piledriver.c -o /tmp/tmpzs8c7_xl/bli_cntx_init_piledriver.o -O3 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/config/sandybridge/bli_cntx_init_sandybridge.c -o /tmp/tmpzs8c7_xl/bli_cntx_init_sandybridge.o -O3 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/config/steamroller/bli_cntx_init_steamroller.c -o /tmp/tmpzs8c7_xl/bli_cntx_init_steamroller.o -O3 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc -c /tmp/pip-install-u4wbn099/blis/blis/_src/kernels/zen/1/bli_amaxv_zen_int.c -o /tmp/tmpzs8c7_xl/bli_amaxv_zen_int.o -O3 -mavx2 -mfma -mfpmath=sse -march=core-avx2 -fPIC -std=c99 -D_POSIX_C_SOURCE=200112L -DBLIS_VERSION_STRING=“0.5.1” -DBLIS_IS_BUILDING_LIBRARY -Iinclude/linux-x86_64 -I./frame/3/ -I./frame/ind/ukernels/ -I./frame/1m/ -I./frame/1f/ -I./frame/1/ -I./frame/include -I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64 gcc: error: unrecognized -march target: core-avx2 gcc: note: valid arguments are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5t armv5e armv5te armv5tej armv6 armv6j armv6k armv6z armv6kz armv6zk armv6t2 armv6-m armv6s-m armv7 armv7-a armv7ve armv7-r armv7-m armv7e-m armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8-m.base armv8-m.main armv8-r iwmmxt iwmmxt2 native gcc: error: missing argument to ‘-march=’ gcc: error: unrecognized command line option ‘-mavx2’ gcc: error: unrecognized command line option ‘-mfma’ gcc: error: unrecognized command line option ‘-mfpmath=sse’ Traceback (most recent call last): File “<string>”, line 1, in <module> File “/tmp/pip-install-u4wbn099/blis/setup.py”, line 277, in <module> “Topic :: Scientific/Engineering”, File “/usr/local/lib/python3.7/dist-packages/setuptools/init.py”, line 163, in setup return distutils.core.setup(**attrs) File “/usr/lib/python3.7/distutils/core.py”, line 148, in setup dist.run_commands() File “/usr/lib/python3.7/distutils/dist.py”, line 966, in run_commands self.run_command(cmd) File “/usr/lib/python3.7/distutils/dist.py”, line 985, in run_command cmd_obj.run() File “/usr/local/lib/python3.7/dist-packages/setuptools/command/install.py”, line 61, in run return orig.install.run(self) File “/usr/lib/python3.7/distutils/command/install.py”, line 589, in run self.run_command(‘build’) File “/usr/lib/python3.7/distutils/cmd.py”, line 313, in run_command self.distribution.run_command(command) File “/usr/lib/python3.7/distutils/dist.py”, line 985, in run_command cmd_obj.run() File “/usr/lib/python3.7/distutils/command/build.py”, line 135, in run self.run_command(cmd_name) File “/usr/lib/python3.7/distutils/cmd.py”, line 313, in run_command self.distribution.run_command(command) File “/usr/lib/python3.7/distutils/dist.py”, line 985, in run_command cmd_obj.run() File “/usr/lib/python3.7/distutils/command/build_ext.py”, line 340, in run self.build_extensions() File “/tmp/pip-install-u4wbn099/blis/setup.py”, line 103, in build_extensions objects = self.compile_objects(compiler.split(“-”)[0], arch, OBJ_DIR) File “/tmp/pip-install-u4wbn099/blis/setup.py”, line 188, in compile_objects objects.append(self.build_object(env=env, **spec)) File “/tmp/pip-install-u4wbn099/blis/setup.py”, line 201, in build_object subprocess.check_call(command, cwd=BLIS_DIR) File “/usr/lib/python3.7/subprocess.py”, line 347, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command ‘[‘gcc’, ‘-c’, ‘/tmp/pip-install-u4wbn099/blis/blis/_src/kernels/zen/1/bli_amaxv_zen_int.c’, ‘-o’, ‘/tmp/tmpzs8c7_xl/bli_amaxv_zen_int.o’, ‘-O3’, ‘-mavx2’, ‘-mfma’, ‘-mfpmath=sse’, ‘-march=core-avx2’, ‘-fPIC’, ‘-std=c99’, ‘-D_POSIX_C_SOURCE=200112L’, ‘-DBLIS_VERSION_STRING=“0.5.1”’, ‘-DBLIS_IS_BUILDING_LIBRARY’, ‘-Iinclude/linux-x86_64’, ‘-I./frame/3/’, ‘-I./frame/ind/ukernels/’, ‘-I./frame/1m/’, ‘-I./frame/1f/’, ‘-I./frame/1/’, ‘-I./frame/include’, ‘-I/tmp/pip-install-u4wbn099/blis/blis/_src/include/linux-x86_64’]’ returned non-zero exit status 1.

  ----------------------------------------

Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-install-u4wbn099/blis/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-record-ah1rmq98/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-gezmrl9i --compile” failed with error code 1 in /tmp/pip-install-u4wbn099/blis/


Command “/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-gezmrl9i --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.mirrors.ustc.edu.cn/simple/ --extra-index-url https://www.piwheels.org/simple – setuptools wheel cython>=0.25 cymem>=2.0.2,<2.1.0 preshed>=3.0.2,❤️.1.0 murmurhash>=0.28.0,<1.1.0 thinc==7.4.1” failed with error code 1 in None `

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
adrianeboydcommented, Sep 4, 2020

Ah, sorry, I just got a raspberry pi 4 for testing and I got a bit ahead of myself here. Let’s back up a step, since I’m not sure this is going to work with your current raspberry pi / OS.

Which raspberry pi model do you have? What is the output of uname -a and lscpu?

spacy requires 64-bit python, but most of the default downloads for raspberry pi OS install images are still 32-bit for compatibility with older models. As one option, I used this image:

https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2020-08-24/

You can confirm that you have 64-bit python with this, which should be True:

python3 -c "import sys; print(sys.maxsize > 2**32)"

And then, including the steps to create python3 virtual environment and update pip, here’s how to install:

python3 -m venv env_spacy
source env_spacy/bin/activate
pip install --upgrade pip
pip install cython wheel
BLIS_ARCH="generic" pip install spacy --no-binary blis

The blis package should ideally pull in cython and wheel automatically as dependencies and it’s a mistake on our end that it doesn’t right now. Upgrading pip may get around some potential issues with how it decides whether binary packages are compatible.

You can look at the line Model name: in lscpu to decide whether to use cortexa53 or cortexa57 instead of generic.

0reactions
github-actions[bot]commented, Nov 1, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Install pip on Raspberry Pi - Linux Hint
How to Install pip on Raspberry Pi · Step 1: Update Raspberry Pi OS · Step 2: Install pip on Raspberry Pi ·...
Read more >
How to install pip on the Raspberry Pi - Pi My Life Up
In this quick guide, you will learn how to install pip on Raspberry Pi OS. pip is the package manager for the Python...
Read more >
Installing Library package in Raspberry Pi-Chapter 2
Installing Library package in Raspberry Pi-Chapter 2 · To install PIP: PIP for python2 - sudo apt-get install python-pip PIP for python3 -...
Read more >
Using pip on Raspberry Pi
Find out how to use pip on a Raspberry Pi to easily install useful Python software. What you will learn. By following this...
Read more >
How to Install and Use Python Packages on Raspberry Pi?
Install new Python packages on Raspberry Pi · On Raspberry Pi OS with Desktop, open the Add / Remove Software tool · Type...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found