【问题标题】:i tried to install pyinstaller and got this我试图安装 pyinstaller 并得到了这个
【发布时间】:2021-10-24 20:48:25
【问题描述】:
PS D:\> PIP install pyinstaller
PIP : The term 'PIP' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ PIP install pyinstaller
+ ~~~
    + CategoryInfo          : ObjectNotFound: (PIP:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS D:\>

【问题讨论】:

  • pip 为小写时是否还会出现此问题?至少在 Linux 上,它是区分大小写的。我不知道 Windows,但也许。
  • 是的,无论是小写还是大写
  • 请澄清您的具体问题或提供更多详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: python pip python-3.10


【解决方案1】:

试试这个:

将脚本文件夹添加到 PATH

C:\Users....\AppData\Local\Programs\Python\Python39\Scripts

C:\Python39\Scripts(取决于您安装 python 的方式定位并添加 python/scripts 文件夹)

*** 无法编辑我之前的答案,所以我必须创建一个新答案。

【讨论】:

    【解决方案2】:

    试试pip3 install pyinstaller。当我在我的 MacBook 上时会发生这种情况。

    【讨论】:

    • 还是同样的问题
    • 你用的是什么操作系统,你之前在这台机器上安装过python吗?
    • windows 10,是的,我有 python 3.10
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-08-13
    • 1970-01-01
    • 2018-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-05
    相关资源
    最近更新 更多