gpt4 book ai didi

python - 如何将 python 命令行工具添加到我的 PATH?

转载 作者:太空宇宙 更新时间:2023-11-04 05:09:38 27 4
gpt4 key购买 nike

我使用 pip 安装了命令行工具 awsebcli。

pip install --upgrade --user awsebcli

如何将它添加到我的 PATH 中,这样我就可以直接输入

eb 

在终端?

文档是这样说的:

Add an export command to your profile script. The following example adds the path represented by LOCAL_PATH to the current PATH variable.

export PATH=LOCAL_PATH:$PATH

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html

但我不确定这里的 LOCAL_PATH 是什么?

$ eb --version
-bash: eb: command not found

我将它添加到我的 .bash_profile 中,然后获取文件,它仍然无法正常工作,正如您从上面的输出中看到的那样。

最佳答案

根据文档,这应该适用于 Linux:export PATH=$PATH:/.local/binHere是一些更详细的说明。

关于python - 如何将 python 命令行工具添加到我的 PATH?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43328658/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com