スクリプトをパスに移動するには?

スクリプトをパスに移動するには?

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にどのように移動できますか?ターミナルを開かずにこのプログラムをインストールしましたが、Ubuntuを再インストールしてすべての操作を再実行できました。正直なところ、どうすればいいのかわかりません。この問題を解決する方法についてステップバイステップのガイドを受け取りたいと思います。ありがとう

Ubuntu 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

その後、保存します。

おすすめ記事