yuxiaoyuan0406 / JetsonInstruction

An instraction for coding and other shit on Jetson nano
3 stars 0 forks source link

[error] command 'aarch64-conda_cos7-linux-gnu-gcc' failed with exit status 1 #5

Open yuxiaoyuan0406 opened 2 years ago

yuxiaoyuan0406 commented 2 years ago

When installing some packages for conda enviorments, pip seems to fail to build wheel.

Building wheels for collected packages: argon2-cffi
  Building wheel for argon2-cffi (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/vip/miniforge-pypy3/envs/torch-rcnn/bin/python3.6 /home/vip/miniforge-pypy3/envs/torch-rcnn/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpqoguk_bv
       cwd: /tmp/pip-install-r5zm07m8/argon2-cffi_9e1a1b43c4f34d259f5d31f3907b3e5f
  Complete output (23 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.6
  creating build/lib.linux-aarch64-3.6/argon2
  copying src/argon2/low_level.py -> build/lib.linux-aarch64-3.6/argon2
  copying src/argon2/_legacy.py -> build/lib.linux-aarch64-3.6/argon2
  copying src/argon2/exceptions.py -> build/lib.linux-aarch64-3.6/argon2
  copying src/argon2/__init__.py -> build/lib.linux-aarch64-3.6/argon2
  copying src/argon2/_password_hasher.py -> build/lib.linux-aarch64-3.6/argon2
  copying src/argon2/_ffi_build.py -> build/lib.linux-aarch64-3.6/argon2
  copying src/argon2/_utils.py -> build/lib.linux-aarch64-3.6/argon2
  copying src/argon2/__main__.py -> build/lib.linux-aarch64-3.6/argon2
  running build_clib
  building 'argon2' library
  creating build/temp.linux-aarch64-3.6
  creating build/temp.linux-aarch64-3.6/extras
  creating build/temp.linux-aarch64-3.6/extras/libargon2
  creating build/temp.linux-aarch64-3.6/extras/libargon2/src
  creating build/temp.linux-aarch64-3.6/extras/libargon2/src/blake2
  aarch64-conda_cos7-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O3 -Wall -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/python_1550972156032/work=/usr/local/src/conda/python-3.6.7 -fdebug-prefix-map=/home/vip/miniforge-pypy3/envs/torch-rcnn=/usr/local/src/conda-prefix -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/python_1550972156032/work=/usr/local/src/conda/python-3.6.7 -fdebug-prefix-map=/home/vip/miniforge-pypy3/envs/torch-rcnn=/usr/local/src/conda-prefix -fPIC -Iextras/libargon2/src/../include -Iextras/libargon2/src/blake2 -c extras/libargon2/src/argon2.c -o build/temp.linux-aarch64-3.6/extras/libargon2/src/argon2.o
  error: command 'aarch64-conda_cos7-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for argon2-cffi
Failed to build argon2-cffi
ERROR: Could not build wheels for argon2-cffi which use PEP 517 and cannot be installed directly

How to fix

Install gcc for conda could fix this. conda install gxx_linux-64