简体   繁体   English

Pyinstaller 更新问题不起作用并且找不到 pyinstaller 修复程序?

[英]Pyinstaller update problem not working and pyinstaller not found fix?

I have pip installed and when I tried to install pyinstaller I get this message.我已经安装了 pip,当我尝试安装 pyinstaller 时,我收到了这条消息。 (Run on Admin) (在管理员上运行)

Microsoft Windows [Version 10.0.19041.450]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\Users\Stevie>ping http://ddos.networkchuck.com/
Ping request could not find host http://ddos.networkchuck.com/. Please check the name and try again.

C:\Users\Stevie>pyinstaller
'pyinstaller' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Stevie>pip install pyinstaller
Requirement already satisfied: pyinstaller in c:\users\stevie\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (4.0)
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in c:\users\stevie\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from pyinstaller) (2020.9)
Requirement already satisfied: pefile>=2017.8.1; sys_platform == "win32" in c:\users\stevie\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from pyinstaller) (2019.4.18)
Requirement already satisfied: setuptools in c:\program files\windowsapps\pythonsoftwarefoundation.python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\site-packages (from pyinstaller) (49.2.1)
Requirement already satisfied: pywin32-ctypes>=0.2.0; sys_platform == "win32" in c:\users\stevie\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from pyinstaller) (0.2.0)
Requirement already satisfied: altgraph in c:\users\stevie\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from pyinstaller) (0.17)
Requirement already satisfied: future in c:\users\stevie\appdata\local\packages\pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\localcache\local-packages\python38\site-packages (from pefile>=2017.8.1; sys_platform == "win32"->pyinstaller) (0.18.2)
WARNING: You are using pip version 20.2.1; however, version 20.2.3 is available.
You should consider upgrading via the 'C:\Users\Stevie\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.

I typed -m pip install --upgrade pip in the right directory to upgrade and I get an error saying我在正确的目录中输入 -m pip install --upgrade pip 进行升级,我收到一条错误消息

Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> -m pip install --upgrade pip
  File "<stdin>", line 1
    -m pip install --upgrade pip
       ^
SyntaxError: invalid syntax
>>>

When I try to do pyinstaller in command prompt this happens:当我尝试在命令提示符下执行 pyinstaller 时,会发生这种情况:


C:\Users\Stevie>pyinstaller
'pyinstaller' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Stevie>

Anyone know why?有谁知道为什么?

直接在命令提示符中(不在 Python 解释器中)输入python -m pip install --upgrade pip

you should first try pip freeze to see if pyinstaller is installed by pip If it is installed, try你应该先试试pip freeze看看 pyinstaller 是不是被 pip 安装了如果安装了,试试

pip uninstall pyinstaller
pip install pyinstaller

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM