Asking for help, the configuration of PyInstaller is unsuccessful

Updated on technology 2024-05-10
4 answers
  1. Anonymous users2024-02-10

    1. Install pyinstaller

    2) Unzip the file: [d: ;

    3) Enter the folder in the command prompt and enter the command: python install

    Or: enter pip install pyinstaller in the command prompt

    4) Enter the command: pip list, you can view all the installed packages and versions of python;

    2. Package the py file into an exe file.

    1) Create a new folder [myexe] in the [d: directory] and put the py file into it;

    2) Command prompt into the myexe folder;

    3) Command prompt input: pyinstaller -f filename. py;Pay attention to spaces and capitalization; [e.g. pyinstaller -f.]

    4) Several files will be generated inside the folder, where the exe file is in the dist folder.

    3. Other parameters: Enter the command pyinstaller -h to view.

    4. Tried commands:

    1) [pyinstaller -w, generate exe file when running, will not pop up cmd window;

    2) [pyinstaller --icon=d: f, which can generate icons for the exe file.]

  2. Anonymous users2024-02-09

    If pyinstaller is not installed successfully and the system is Windows, please right-click on my computer or this computer or computer, click Properties, click Advanced System Settings, click Environment Variables, find the line of the system variable named path, double-click to open, find the path, copy the path, go back to the path interface, click New, paste the path in, remove the quotation marks, all OK, close the original cmd, and reopen it. Use cd to switch the path to the directory where the py file is located, and then compile it?

    Mac system I won't, sorry....

  3. Anonymous users2024-02-08

    Update the systemThis is caused by a low version, or a system abnormality, and the system needs to be updated.

    Heavy feast on the world's mobile phoneThe phone is faulty, and you need to check it back and restart the phone.

  4. Anonymous users2024-02-07

    <> the content of the valueerror is the crux of the issue, please take a closer look at the description as your target package file is not found.

    There are two default cases you need to be aware of:

    1) After installing python, the path of the python installation package will be added to the system environment variables, which means that you can enter pyinstaller in any working directory after opening cmd and you can run it successfully;

    2) The operations in cmd are all performed for files in the current working directory.

    Problem solving: Step 1: Check which folder your target file ***py is in;

    Step 2: Use the cd command of cmd to locate the current working directory to the folder where your target py file is located;

    Step 3: Run pyinstaller again.

Related questions
37 answers2024-05-10

It depends on whether your power supply can bear it, if it is a 300W power supply, you simply don't upgrade the graphics card, it is still okay to upgrade the memory, if you have enough money, it is recommended that you buy two 2G memory. >>>More

6 answers2024-05-10

There is an equation about tan(2) that can be solved, pay attention to the range, and estimate that a negative root is discarded. >>>More

5 answers2024-05-10

I wish you a lot of fragrance.

Pine drops are floral. >>>More

9 answers2024-05-10

I think you should first be clear about what kind of person you want to be in the future, and this needs to be combined with your own strengths and talents. I summarize the path of life into three aspects: first, politics; 2. Business; 3. From experts and scholars. You have to decide which path you want to take, and then work hard according to your ideals! >>>More

27 answers2024-05-10

The Sony 77 and Pentax K5 are all within 10,000 units.

In fact, the gap between the quality of several pullovers is not as big as the legend, and you have to find out a characteristic, according to personal experience, several imaging comparisons, Nikon is sharp, Canon is soft, Sony color saturation is high, and Pentax tolerance is good. >>>More