首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何将脚本移动到路径?

如何将脚本移动到路径?
EN

Unix & Linux用户
提问于 2023-04-06 20:48:47
回答 1查看 117关注 0票数 1

我试图通过Whisper安装OpenAI,安装后有7个脚本给我发送了这个错误:

代码语言:javascript
复制
  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

EN

回答 1

Unix & Linux用户

发布于 2023-04-06 20:54:04

用你喜欢的编辑器,可以是gedit,nano.

打开~/.bashrc,然后搜索模式PATH

如果存在(Ex:):

代码语言:javascript
复制
export PATH:/bin:/usr/bin:/usr/local/bin

添加新目录:

代码语言:javascript
复制
export PATH:/home/yamada/.local/bin:/bin:/usr/bin:/usr/local/bin

如果没有匹配:

代码语言:javascript
复制
export PATH=/home/yamada/.local/bin:$PATH

那就省省吧。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/742193

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档