Missing dll files when using pyinstaller

后端 未结 6 1645
醉酒成梦
醉酒成梦 2020-12-18 00:02

Good day!

I\'m using python 3.5.2 with qt5, pyqt5 and sip14.8. I\'m also using the latest pyinstaller bracnch (3.3.dev0+g501ad40).

I\'m trying to create an e

相关标签:
6条回答
  • 2020-12-18 00:22

    I read all complicated solutions on github and stackoverflow for this problem. However, the below simple solution is what worked for me:

    Step 1: pip3 uninstall pyinstaller

    Step 2: pip install pyinstaller

    Step 3: pyinstaller --onefile filename.py

    I tried this solution on 2 different computers which were facing the same problem. Both worked. Please let me know if this works for you as well. Thumbs up would be appreciated after that. Cheers

    0 讨论(0)
  • 2020-12-18 00:28

    This has now been fixed in the latest development branch of PyInstaller, see this Issue for PyInstaller on GitHub.

    0 讨论(0)
  • 2020-12-18 00:29

    This may be more like a workaround and Pyinstaller might need fixing.

    I found out that --paths argument pointing to the directory containing Qt5Core.dll, Qt5Gui.dll, etc. helped

    pyinstaller --paths C:\Python35\Lib\site-packages\PyQt5\Qt\bin hello.py
    
    0 讨论(0)
  • 2020-12-18 00:34

    26095 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\user\appdata\local\programs\python\python36-32\DLLs\select.pyd

    Search in C: drive for dll and set the path in pyinstaller command. The below command fixed the above pyinstaller error in windows 10:

    pyinstaller --paths "C:\Windows\WinSxS\x86_microsoft-windows-m..namespace-downlevel_31bf3856ad364e35_10.0.17134.1_none_50c6cb8431e7428f" hello.py
    
    0 讨论(0)
  • 2020-12-18 00:42

    Normally adding --Path argument pointing directory containing unfound library solves the problem. There might be a problem if command string parsing if you are using PyInstaller 3.3dev. This generally happens if the path contains spaces. In such case, you can modify pathex argument in .spec file generated by PyInstaller and then run it with PyInstaller to build executable.

    pyinstaller file_name.spec
    

    Hopefully, this will be fixed soon.....

    0 讨论(0)
  • 2020-12-18 00:47

    can use "pyinstaller --onefile filename.py". exe file will be created in dist folder

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