【发布时间】:2020-07-01 23:17:36
【问题描述】:
尝试使用 PyInstaller 为应用程序创建 Mac 发行版。
导航到包含我的文件的目录,我输入pyinstaller START_HERE.py
输出为zsh: permission denied: pyinstaller
然后我用sudo试了一下:sudo pyinstaller START_HERE.py
输出为:sudo: pyinstaller: command not found
pip3 show pyinstaller 将位置显示为Location: /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages
我用sudo nano /etc/paths更新了我的Mac上的路径,将上面的路径粘贴进去,保存并确认它在echo $PATH的路径中。
我不知道以下有多少是相关的,所以我将其全部包括在内: PyCharm 中的 Python 开发(开发是在 Windows 中完成的,也在 PyCharm 中), Mac 正在将 iTerm 与 Oh-My-zsh 一起使用
我不确定还可以尝试什么,以及许可的事情是否是一个红鲱鱼,并且不知何故我只是走错了路。
【问题讨论】:
标签: python macos pycharm pyinstaller oh-my-zsh