머신러닝,딥러닝
pip install insightface 오류날 때 (onnx install 오류 해결)
mcdn
2023. 5. 4. 15:36
반응형
pip install insightface
github 코드를 돌릴 때 insightface를 설치할 필요가 있었다.
처음에는 collecting.. installing.. 잘 나오는 듯 하더니
마지막에 onnx 관련해서 빨갛게 오류가 나왔다.
ERROR: Command errored out with exit status 1: /home/honme/anaconda3/envs/tmp/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8o2aw5p6/onnx_e7d2b9d1228a4b13a919e933f594b4ed/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8o2aw5p6/onnx_e7d2b9d1228a4b13a919e933f594b4ed/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-0cacngzw/install-record.txt --single-version-externally-managed --compile --install-headers /home/honme/anaconda3/envs/tmp/include/python3.6m/onnx Check the logs for full command output.
ERROR: Command errored out with exit status 1: /home/honme/anaconda3/envs/tmp/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8o2aw5p6/onnx_e7d2b9d1228a4b13a919e933f594b4ed/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8o2aw5p6/onnx_e7d2b9d1228a4b13a919e933f594b4ed/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-0cacngzw/install-record.txt --single-version-externally-managed --compile --install-headers /home/honme/anaconda3/envs/tmp/include/python3.6m/onnx Check the logs for full command output.
이런식으로 오류가 나온다면 onnx 설치 에러이므로 onnx 를 다른 방법으로 설치해서 해결할 수 있다.
conda install -c conda-forge onnx
conda install -c conda-forge onnx
conda install -c conda-forge onnx
명령어를 실행한다.
시간이 다소 걸린다. 3~4분 정도 patient하게 기다리면
패키지 계속 설치하겠습니까? 가 나오고 y를 클릭하면
onnx가 잘 설치 된다.
pip install insightface
Successfully installed easydict-1.10 insightface-0.2.1
그리고 나서 pip install insightface를 하면 아주 잘 설치된다.
Reference:
https://velog.io/@hdhd0101/onnx-install-error
반응형