Pyinstaller is not recognized as internal or external command

前端 未结 8 1607
旧巷少年郎
旧巷少年郎 2020-12-15 07:51

I am trying to use pyinstaller in cmd but I receive error:

C:\\Users\\username>pyinstaller
\'pyinstaller\' is not recognized as an internal         


        
相关标签:
8条回答
  • 2020-12-15 08:20

    you have to modify your PATH environ to include C:\Users\username\AppData\Local\Programs\Python\Python36-32\Scripts> if you don't know how to do it look here
    good luck

    0 讨论(0)
  • 2020-12-15 08:21

    if you cannot do anything or you have less time, you can make the virtual environment and install pyinstaller there, then generate executable file

    0 讨论(0)
  • 2020-12-15 08:22

    Goto - "C:\Users\Username\anaconda3\Scripts" path and copy "pyinstaller.exe" and paste it in the directory where you want to use pyinstaller, it worked for me

    0 讨论(0)
  • 2020-12-15 08:27

    Had exactly the same issue:

    • Locate your Python folder and go to Python\Python38\Lib\site-packages
    • From there delete the Pyinstaller module and Pyinstaller dis.info folder
    • Reinstall Pyinstaller using pip install pyinstaller
    0 讨论(0)
  • 2020-12-15 08:27

    Enter in Administrative Console: pip install pyinstaller

    0 讨论(0)
  • 2020-12-15 08:32

    Copy 'pyinstaller.exe' to the folder you have the .py file you want to convert. When you are done, just delete 'pyinstaller.exe'. Good luck.

    0 讨论(0)
提交回复
热议问题