OpenAI를 통해 설치를 시도했는데 Whisper
설치 후 7개의 스크립트에서 다음 오류를 보냈습니다.
WARNING: The script lit is installed in '/home/yamada/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts cmake, cpack and ctest are installed in '/home/yamada/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script tqdm is installed in '/home/yamada/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script isympy is installed in '/home/yamada/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts f2py, f2py3 and f2py3.10 are installed in '/home/yamada/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script normalizer is installed in '/home/yamada/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts convert-caffe2-to-onnx, convert-onnx-to-caffe2 and torchrun are installed in '/home/yamada/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The script whisper is installed in '/home/yamada/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed charset-normalizer-3.1.0 cmake-3.26.1 ffmpeg-python-0.2.0 filelock-3.10.7 jinja2-3.1.2 lit-16.0.0 llvmlite-0.39.1 mpmath-1.3.0 networkx-3.1 numba-0.56.4 numpy-1.23.5 nvidia-cublas-cu11-11.10.3.66 nvidia-cuda-cupti-cu11-11.7.101 nvidia-cuda-nvrtc-cu11-11.7.99 nvidia-cuda-runtime-cu11-11.7.99 nvidia-cudnn-cu11-8.5.0.96 nvidia-cufft-cu11-10.9.0.58 nvidia-curand-cu11-10.2.10.91 nvidia-cusolver-cu11-11.4.0.1 nvidia-cusparse-cu11-11.7.4.91 nvidia-nccl-cu11-2.14.3 nvidia-nvtx-cu11-11.7.91 openai-whisper-20230314 regex-2023.3.23 requests-2.28.2 sympy-1.11.1 tiktoken-0.3.1 torch-2.0.0 tqdm-4.65.0 triton-2.0.0 typing-extensions-4.5.0
yamada@yamada-PC:~$
이 7개 스크립트를 PATH로 어떻게 이동할 수 있나요? 터미널을 열지 않고 이 프로그램을 설치했는데 우분투를 다시 설치하고 모든 작업을 다시 할 수 있었습니다. 솔직히 어떻게 해야할지 모르겠습니다. 이 문제를 해결하는 방법에 대한 단계별 가이드를 받고 싶습니다. 감사해요
우분투 22.04를 사용합니다
답변1
좋아하는 편집기를 사용하세요. gedit, nano 등이 가능합니다.
그것을 열고 ~/.bashrc
패턴을 검색하십시오 PATH
.
존재하는 경우(예: ):
export PATH:/bin:/usr/bin:/usr/local/bin
새 디렉터리를 추가합니다.
export PATH:/home/yamada/.local/bin:/bin:/usr/bin:/usr/local/bin
일치하는 항목이 없는 경우:
export PATH=/home/yamada/.local/bin:$PATH
그런 다음 저장하십시오.