한 번만 더 해보자

[Linux] /bin/bash: ngc: command not found 본문

Linux

[Linux] /bin/bash: ngc: command not found

정 하임 2024. 5. 9. 22:20

상황

tao-toolkit에서 아래 명령어를 실행시키는데 command not found 에러코드 발생

!ngc registry model list nvidia/tao/pretrained_classification:*

 

에러코드

/bin/bash: ngc: command not found

 

 

해결방안

!wget --content-disposition <https://ngc.nvidia.com/downloads/ngccli_linux.zip> && unzip ngccli_linux.zip && chmod u+x ngc-cli/ngc
  • wget : ‘Web Get’의 약어. 웹 상의 파일을 다운받을때 사용하는 명령어
    • wget [옵션] [url]
  • --content-disposition : url 주소를 기준으로 받을 때 (원래는 파일 이름으로 다운됨)
  • unzip : 다운받은 파일 압축 해제
  • chmod : 권한 변경
  • && : 이전 명령의 결과를 받아서 다음 결과를 실행
반응형