简体   繁体   中英

Pyinstaller is not recognized as an external or internal command, an executable program or a command file

I'm trying to compile a python program that prints "hello world." with the Pyinstaller module. But when I type the command pyinstaller HelloWorld.py in my command prompt, it told me "pyinstaller is not recognized as an internal or external command, an executable program or a command file". How can I make compilation works correctly?

Thank you !

In the HelloWorld.py file, I typed the following command:

print("Hello World !")

In the command prompt, I typed: pyinstaller HelloWorld.py

This is when I hit the "Enter" key that the error happens.

Simply you can install it using pip.

pip install pyinstaller

Requirements :

  1. 3.7-3.11. Note that Python 3.10.0 contains a bug making it unsupportable by PyInstaller. PyInstaller will also not work with beta releases of Python 3.12.

  2. PyInstaller should work on Windows 7 or newer, but it only officially support Windows 8+.

  3. Support for Python installed from the Windows store without using virtual environments requires PyInstaller 4.4 or later.

  4. Note that Windows on arm64 is not yet supported.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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