找不到Pyinstaller命令(MacOS) [英] Pyinstaller command not found (MacOS)

查看:838
本文介绍了找不到Pyinstaller命令(MacOS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试在程序scratch_1.py上使用PyInstaller. PyCharm项目文件夹称为"idigen",保存在我的桌面中.所以,我这样改变了导演:

I've been trying to use PyInstaller on my program, scratch_1.py. The PyCharm project folder is called "idigen", which is saved in my desktop. So, I changed the director like so:

cd /Users/joelsaarinen/Desktop/idigen

然后,继续使用pyinstaller,然后出现此错误:

then, moved on to use pyinstaller, and I get this error:

pyinstaller scratch_1.py
-bash: pyinstaller: command not found

我很困惑,因为当我使用时:

I'm confused because when I use:

pip show pyinstaller

要验证我是否安装了pyinstaller,它会返回肯定的结果.

to verify that I have pyinstaller installed, it returns a positive result.

在其中一个文件上使用Pyinstaller时是否应该输入其他命令?这可能与该特定程序或操作系统有关吗?提前致谢.

Is there an additional command I should be putting in when using Pyinstaller on one of my files? Might this be an issue with this specific program or the operating system in general? Thanks in advance.

推荐答案

pyinstaller似乎已正确安装,但该命令在PATH上不可用.您需要找到可执行文件的放置位置.在下面找到可执行文件

pyinstaller appears to have installed correctly, but the command is not available on PATH. You need to locate where the executable was placed.`below to find executables

设置| grep pyinstaller

set | grep pyinstaller

现在通过此修改路径

 export PATH=some_path:another_path
launchctl setenv PATH $PATH

这篇关于找不到Pyinstaller命令(MacOS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆