Path 在Mac上找不到PyInstaller命令

Path 在Mac上找不到PyInstaller命令,path,pip,pyinstaller,Path,Pip,Pyinstaller,我使用pip在我的mac上安装pyinstaller。当使用pyinstaller命令时,它会显示“-bash:pyinstaller:command not found”。我知道我需要将它的路径添加到我的bash概要文件中,但我不知道如何做到这一点 pip show-f pyinstaller | grep Location | sed's/^Location://'| xargs-I{}readlink-f{}/../../../../bin应该是路径。检查/ful/printed/path

我使用pip在我的mac上安装pyinstaller。当使用pyinstaller命令时,它会显示“-bash:pyinstaller:command not found”。我知道我需要将它的路径添加到我的bash概要文件中,但我不知道如何做到这一点

pip show-f pyinstaller | grep Location | sed's/^Location://'| xargs-I{}readlink-f{}/../../../../bin
应该是路径。检查
/ful/printed/path/to/bin/pyinstaller--help
是否有效,然后打开
~/.bash_profile
并添加行
path=“/full/printed/path/to/bin:${path}”
导出路径
,保存。现在运行
source~/.bash\u profile
或重新打开终端。您使用的是anaconda python发行版吗?如果是这样,您可能需要使用anaconda提示符下的
conda install pyinstaller
安装pyinstaller