我试图通过Whisper安装OpenAI,安装后有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
发布于 2023-04-06 20:54:04
用你喜欢的编辑器,可以是gedit,nano.
打开~/.bashrc,然后搜索模式PATH。
如果存在(Ex:):
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那就省省吧。
https://unix.stackexchange.com/questions/742193
复制相似问题