pyinstaller如何打包含有dll的.py文件?

命令:pyinstaller test.spec
执行:test.exe
出错:E:\python\project\lbmWebS\lib\testapi.dll could not be extracted!

打包的warn文件
missing module named unicodedata.ucd_3_2_0 - imported by unicodedata, stringprep, encodings.idna
missing module named warnings.warn_explicit - imported by _warnings, warnings
missing module named _warnings.filters - imported by _warnings, warnings
missing module named _warnings.once_registry - imported by _warnings, warnings
missing module named _warnings.default_action - imported by _warnings, warnings
missing module named _warnings.warn - imported by _warnings, warnings
missing module named _subprocess.STD_OUTPUT_HANDLE - imported by _subprocess, subprocess
missing module named _subprocess.CREATE_NEW_PROCESS_GROUP - imported by _subprocess, subprocess
missing module named _subprocess.STD_INPUT_HANDLE - imported by _subprocess, subprocess
missing module named _subprocess.STARTF_USESHOWWINDOW - imported by _subprocess, subprocess
missing module named _subprocess.CREATE_NEW_CONSOLE - imported by _subprocess, subprocess
missing module named _subprocess.STD_ERROR_HANDLE - imported by _subprocess, subprocess
missing module named _subprocess.STARTF_USESTDHANDLES - imported by _subprocess, subprocess
missing module named _subprocess.SW_HIDE - imported by _subprocess, subprocess
missing module named cPickle.loads - imported by cPickle, collections
missing module named cPickle.dumps - imported by cPickle, collections
missing module named thread.get_ident - imported by thread, collections
missing module named thread._local - imported by thread, threading
missing module named thread.stack_size - imported by thread, threading
missing module named thread.allocate_lock - imported by thread, _strptime
missing module named itertools.chain - imported by itertools, heapq, collections
missing module named itertools.starmap - imported by itertools, collections
missing module named itertools.repeat - imported by itertools, heapq, collections
missing module named itertools.imap - imported by itertools, heapq
missing module named itertools.tee - imported by itertools, heapq
missing module named itertools.izip - imported by itertools, heapq
missing module named itertools.count - imported by itertools, heapq
missing module named itertools.islice - imported by itertools, repr, heapq
missing module named operator.itemgetter - imported by operator, collections, heapq
missing module named operator.attrgetter - imported by operator, inspect
missing module named _collections.deque - imported by _collections, collections
missing module named _collections.defaultdict - imported by _collections, collections
missing module named _weakref.ref - imported by _weakref, _weakrefset, weakref
missing module named _weakref.ReferenceType - imported by _weakref, weakref
missing module named _weakref.proxy - imported by _weakref, weakref
missing module named _weakref.getweakrefs - imported by _weakref, weakref
missing module named _weakref.getweakrefcount - imported by _weakref, weakref
missing module named _weakref.ProxyType - imported by _weakref, weakref
missing module named _weakref.CallableProxyType - imported by _weakref, weakref
missing module named time.time - imported by time, threading
missing module named time.sleep - imported by time, threading
missing module named datetime.date - imported by datetime, _strptime
missing module named errno.ENOENT - imported by errno, gettext
missing module named _functools.partial - imported by _functools, functools
missing module named _functools.reduce - imported by _functools, functools
missing module named copy.deepcopy - imported by copy, weakref
missing module named exceptions.ReferenceError - imported by exceptions, weakref
missing module named binascii.hexlify - imported by binascii, random
missing module named math.sin - imported by math, random
missing module named math.sqrt - imported by math, random
missing module named math.cos - imported by math, random
missing module named math.acos - imported by math, random
missing module named math.ceil - imported by math, random
missing module named math.exp - imported by math, random
missing module named math.log - imported by math, random
missing module named math.e - imported by math, random
missing module named math.pi - imported by math, random
missing module named readline - imported by cmd, pdb
missing module named errno.EINVAL - imported by errno, StringIO
missing module named cStringIO.StringIO - imported by cStringIO, gettext, pickle, pprint, shlex, tempfile, encodings.uu_codec, quopri, encodings.quopri_codec
missing module named binascii.b2a_qp - imported by binascii, quopri
missing module named binascii.a2b_qp - imported by binascii, quopri
missing module named binascii.a2b_uu - imported by binascii, encodings.uu_codec
missing module named binascii.b2a_uu - imported by binascii, encodings.uu_codec
missing module named 'org.python'.PyStringMap - imported by 'org.python', pickle
missing module named 'org.python' - imported by pickle
missing module named struct.calcsize - imported by struct, ctypes
missing module named _struct.
_doc__ - imported by struct, struct
missing module named _struct._clearcache - imported by _struct, struct
missing module named fcntl - imported by subprocess, tempfile
missing module named threading.RLock - imported by threading, _threading_local
missing module named threading.current_thread - imported by threading, _threading_local
missing module named os.urandom - imported by os, random
missing module named riscosenviron._Environ - imported by riscosenviron, os
missing module named riscosenviron - imported by os
missing module named riscospath - imported by os
missing module named riscos._exit - imported by riscos, os
missing module named riscos - imported by os
missing module named ce._exit - imported by ce, os
missing module named ce - imported by os
missing module named _emx_link.link - imported by _emx_link, os
missing module named _emx_link - imported by os
missing module named os2._exit - imported by os2, os
missing module named os2 - imported by os
missing module named nt._isdir - imported by nt, ntpath
missing module named nt._getfullpathname - imported by nt, ntpath
missing module named nt._exit - imported by nt, os
missing module named pwd - imported by posixpath
missing module named posix._exit - imported by posix, os
missing module named posix - imported by os
missing module named resource - imported by posix
missing module named strop.whitespace - imported by strop, string
missing module named strop.maketrans - imported by strop, string
missing module named strop.lowercase - imported by strop, string
missing module named strop.uppercase - imported by strop, string
missing module named org.PyStringMap - imported by org, copy
missing module named org - imported by copy
missing module named re._compile - imported by re, sre
missing module named re.
_all__ - imported by re, sre
missing module named codecs.mbcs_encode - imported by codecs, encodings.mbcs
missing module named codecs.mbcs_decode - imported by codecs, encodings.mbcs
missing module named ctypes._wstring_at_addr - imported by _ctypes, ctypes
missing module named _ctypes._string_at_addr - imported by _ctypes, ctypes
missing module named _ctypes._cast_addr - imported by _ctypes, ctypes
missing module named _ctypes._memset_addr - imported by _ctypes, ctypes
missing module named _ctypes._memmove_addr - imported by _ctypes, ctypes
missing module named _ctypes.get_last_error - imported by _ctypes, ctypes
missing module named _ctypes.set_last_error - imported by _ctypes, ctypes
missing module named _ctypes._check_HRESULT - imported by _ctypes, ctypes
missing module named _ctypes.set_conversion_mode - imported by _ctypes, ctypes
missing module named _ctypes._pointer_type_cache - imported by _ctypes, ctypes
missing module named _ctypes.POINTER - imported by _ctypes, ctypes
missing module named _ctypes._SimpleCData - imported by _ctypes, ctypes
missing module named _ctypes.get_errno - imported by _ctypes, ctypes
missing module named _ctypes.set_errno - imported by _ctypes, ctypes
missing module named _ctypes.alignment - imported by _ctypes, ctypes
missing module named _ctypes.addressof - imported by _ctypes, ctypes
missing module named _ctypes.resize - imported by _ctypes, ctypes
missing module named _ctypes.byref - imported by _ctypes, ctypes
missing module named _ctypes.sizeof - imported by _ctypes, ctypes
missing module named _ctypes.dlopen - imported by _ctypes, ctypes
missing module named _ctypes.FUNCFLAG_STDCALL - imported by _ctypes, ctypes
missing module named _ctypes.LoadLibrary - imported by _ctypes, ctypes
missing module named _ctypes.FUNCFLAG_USE_ERRNO - imported by _ctypes, ctypes
missing module named _ctypes.FUNCFLAG_USE_LASTERROR - imported by _ctypes, ctypes
missing module named _ctypes.FUNCFLAG_PYTHONAPI - imported by _ctypes, ctypes
missing module named _ctypes.FUNCFLAG_CDECL - imported by _ctypes, ctypes
missing module named _ctypes.FormatError - imported by _ctypes, ctypes
missing module named _ctypes.ArgumentError - imported by _ctypes, ctypes
missing module named _ctypes.RTLD_LOCAL - imported by _ctypes, ctypes
missing module named _ctypes.RTLD_GLOBAL - imported by _ctypes, ctypes
missing module named _ctypes.
_version__ - imported by _ctypes, ctypes
missing module named _ctypes.CFuncPtr - imported by _ctypes, ctypes
missing module named _ctypes._Pointer - imported by _ctypes, ctypes
missing module named _ctypes.Structure - imported by _ctypes, ctypes
missing module named _ctypes.Array - imported by _ctypes, ctypes
missing module named _ctypes.Union - imported by _ctypes, ctypes

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
pyinstaller 打包python文件为exe时出错

cmd上运行后如下: C:\WINDOWS\system32>pyinstaller -F C:\Users\lenovo\Desktop\文档\测试\btboay.py 128 INFO: PyInstaller: 3.3.1 128 INFO: Python: 3.6.5 129 INFO: Platform: Windows-10-10.0.16299-SP0 131 INFO: wrote C:\WINDOWS\system32\btboay.spec 141 INFO: UPX is not available. 142 INFO: Extending PYTHONPATH with paths ['C:\\Users\\lenovo\\Desktop\\文档\\测试', 'C:\\WINDOWS\\system32'] 143 INFO: checking Analysis 270 INFO: Building because inputs changed 271 INFO: Initializing module dependency graph... 294 INFO: Initializing module graph hooks... 299 INFO: Analyzing base_library.zip ... 7202 INFO: running Analysis out00-Analysis.toc 7208 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable required by d:\python\python.exe 7701 WARNING: lib not found: api-ms-win-crt-process-l1-1-0.dll dependency of d:\python\python36.dll 7782 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of d:\python\python36.dll 8887 INFO: Caching module hooks... 8900 INFO: Analyzing C:\Users\lenovo\Desktop\文档\测试\btboay.py 9554 INFO: Loading module hooks... 9555 INFO: Loading module hook "hook-encodings.py"... 10430 INFO: Loading module hook "hook-pydoc.py"... 10432 INFO: Loading module hook "hook-xml.py"... 10926 INFO: Loading module hook "hook-_tkinter.py"... 11707 INFO: checking Tree 11981 INFO: checking Tree 12067 INFO: Looking for ctypes DLLs 12067 INFO: Analyzing run-time hooks ... 12072 INFO: Including run-time hook 'pyi_rth__tkinter.py' 12094 INFO: Looking for dynamic libraries 12195 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of d:\python\DLLs\_ssl.pyd 12327 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of d:\python\DLLs\_hashlib.pyd 12828 INFO: Looking for eggs 12828 INFO: Using Python library d:\python\python36.dll 12829 INFO: Found binding redirects: [] 12849 INFO: Warnings written to C:\WINDOWS\system32\build\btboay\warnbtboay.txt 12952 INFO: Graph cross-reference written to C:\WINDOWS\system32\build\btboay\xref-btboay.html 13010 INFO: checking PYZ 13036 INFO: Building because toc changed 13036 INFO: Building PYZ (ZlibArchive) C:\WINDOWS\system32\build\btboay\out00-PYZ.pyz 14218 INFO: Building PYZ (ZlibArchive) C:\WINDOWS\system32\build\btboay\out00-PYZ.pyz completed successfully. 14232 INFO: checking PKG 14291 INFO: Building because toc changed 14291 INFO: Building PKG (CArchive) out00-PKG.pkg 20903 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully. 20975 INFO: Bootloader d:\python\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run.exe 20975 INFO: checking EXE 21034 INFO: Building because toc changed 21034 INFO: Building EXE from out00-EXE.toc 21219 INFO: Appending archive to EXE C:\WINDOWS\system32\dist\btboay.exe 21236 INFO: Building EXE from out00-EXE.toc completed successfully. 但我要打包的文件目录下只生成了一个__pycache__文件夹,没有打包的EXE文件

用pyinstaller打包py程序后运行闪退,pycharm和Jupiter环境中运行均无问题,cmd检查出现以下错误,劳知晓具体解决问题办法大佬解答

D:\tool\Anaconda\Scripts\dist>.\"index smooth.exe" Traceback (most recent call last): File "site-packages\PyInstaller\loader\rthooks\pyi_rth_certifi.py", line 13, in <module> File "d:\tool\anaconda\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module exec(bytecode, module.__dict__) File "ssl.py", line 98, in <module> ImportError: DLL load failed: 找不到指定的模块。 [19648] Failed to execute script pyi_rth_certifi

调用扩展包的函数的.py文件生成.exe报错

求助大神! 我在用pyinstaller 将调用了psychopy扩展包里的函数的.py文件生成为可执行文件时,生成的.exe文件显示:ImportError: DLL load failed: 找不到指定的模块。 我在Python3.6的环境下,手动安装的psychopy-1.90.1扩展包。 待生成的.py文件如下: ![图片说明](https://img-ask.csdn.net/upload/201805/11/1526047387_84758.png) 在生成exe的时候考虑到了第三方扩展包的问题,在cmd 的D:\AA>路径下输入: pyinstaller -F -p D:\python3\psychopy; AA4.0.py 生成的.exe文件在执行时出现如下报错: D:\AA>dist\AA4.0 [1 2 3 4 5] Hello ward Enter [6 0 5 0 1 3 5 4 8 7] Traceback (most recent call last): File "AA4.0.py", line 24, in <module> from psychopy import visual File "d:\python3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module exec(bytecode, module.__dict__) File "psychopy\visual\__init__.py", line 22, in <module> File "d:\python3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module exec(bytecode, module.__dict__) File "psychopy\visual\basevisual.py", line 42, in <module> File "d:\python3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module exec(bytecode, module.__dict__) File "psychopy\tools\monitorunittools.py", line 15, in <module> File "d:\python3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module exec(bytecode, module.__dict__) File "psychopy\monitors\__init__.py", line 10, in <module> File "d:\python3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module exec(bytecode, module.__dict__) File "psychopy\monitors\calibTools.py", line 36, in <module> File "d:\python3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module exec(bytecode, module.__dict__) File "site-packages\scipy\optimize\__init__.py", line 270, in <module> File "d:\python3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module exec(bytecode, module.__dict__) File "site-packages\scipy\optimize\optimize.py", line 37, in <module> File "d:\python3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module exec(bytecode, module.__dict__) File "site-packages\scipy\optimize\linesearch.py", line 18, in <module> File "d:\python3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 714, in load_module module = loader.load_module(fullname) ImportError: DLL load failed: 找不到指定的模块。 [62380] Failed to execute script AA4.0 感觉是pyinstaller没有把psychopy相关的模块打包进去,因为AA4.0.py中前一半不需要调用psychopy函数的程序能够在.exe中运行,但是后一半需要调用psychopy扩展包里面的函数的程序就无法运行了。 我应该怎么查是哪里出现问题的呢?

pyinstaller 生成exe文件 包含其他文件夹(内不含py)

现在想用pyinstaller打包成一个exe文件,但是打包成功后运行失败 ![图片说明](https://img-ask.csdn.net/upload/201908/26/1566807774_51117.png) 工程目录下有个依赖文件夹“VLC_3.0.0”想将它一起打包到exe中: ``` os.environ['PYTHON_VLC_MODULE_PATH'] = "./VLC_3.0.0" ``` 打包命令: ``` pyinstaller -F myPython.py -n meng.exe ``` 怎么让生成的exe包含VCL_3.0.0这个文件夹呢?因为依赖里面的 libvlccore.dll,libvlc.dll 库。 求各位大神指点!!!

windows下,pyinstaller打包python脚本,在别人电脑运行出问题

刚开始打包的时候,只运行了以下代码: ``` pyinstaller -F test.py ``` 运行生成的exe文件后,出现“Is poppler installed and in PATH?”错误 ![图片说明](https://img-ask.csdn.net/upload/202003/12/1583985217_809367.jpg) 然后将poppler的路径加入了系统Path 再运行还是会出现“Is poppler installed and in PATH?” 然后打包的时候加入PIL和pdfimage的脚本路径,运行了以下代码: ``` pyinstaller -F test.py -p D:\Python\Python37\Lib\site-packages\pdf2image;D:\Python\Python37\Lib\site-packages\PIL ``` 运行生成的exe文件后,出现“attempted relative import with no known parent package” ![图片说明](https://img-ask.csdn.net/upload/202003/12/1583985384_346060.jpg) 请问如何解决打包问题,本人的python是3.7.3版本

pyinstaller打包exe后在其他环境上无法运行

win10 64位上用pyinstaller把.py打包.exe,本机上没有问题,但在win xp上无法运行 试着搜索了一下warn文件里的内容貌似没找到解决方案 打包过程的图片: ![图片说明](https://img-ask.csdn.net/upload/201901/30/1548828748_686025.png) warn里面的内容: ```py missing module named resource - imported by posix, C:\Users\12848\Desktop\project\I GOT YOU.py missing module named posix - imported by os, C:\Users\12848\Desktop\project\I GOT YOU.py missing module named _posixsubprocess - imported by subprocess, C:\Users\12848\Desktop\project\I GOT YOU.py missing module named org - imported by pickle, C:\Users\12848\Desktop\project\I GOT YOU.py missing module named readline - imported by cmd, code, pdb, C:\Users\12848\Desktop\project\I GOT YOU.py excluded module named _frozen_importlib - imported by importlib, importlib.abc, C:\Users\12848\Desktop\project\I GOT YOU.py missing module named _frozen_importlib_external - imported by importlib._bootstrap, importlib, importlib.abc, C:\Users\12848\Desktop\project\I GOT YOU.py missing module named _winreg - imported by platform, C:\Users\12848\Desktop\project\I GOT YOU.py missing module named _scproxy - imported by urllib.request missing module named java - imported by platform, C:\Users\12848\Desktop\project\I GOT YOU.py missing module named 'java.lang' - imported by platform, C:\Users\12848\Desktop\project\I GOT YOU.py, xml.sax._exceptions missing module named vms_lib - imported by platform, C:\Users\12848\Desktop\project\I GOT YOU.py missing module named termios - imported by tty, C:\Users\12848\Desktop\project\I GOT YOU.py, getpass missing module named grp - imported by shutil, tarfile, C:\Users\12848\Desktop\project\I GOT YOU.py missing module named 'org.python' - imported by copy, C:\Users\12848\Desktop\project\I GOT YOU.py, xml.sax missing module named pwd - imported by posixpath, shutil, tarfile, http.server, webbrowser, C:\Users\12848\Desktop\project\I GOT YOU.py, netrc, getpass missing module named _dummy_threading - imported by dummy_threading, C:\Users\12848\Desktop\project\I GOT YOU.py ``` 我的程序中调用的库: ```python from tkinter import* import tkinter.messagebox from random import randint from threading import Thread from time import sleep from re import split ```

pyinstaller打包错误 系统无法访问此文件

61 INFO: PyInstaller: 3.6 61 INFO: Python: 3.8.2 63 INFO: Platform: Windows-10-10.0.18362-SP0 63 INFO: wrote D:\hy\源代码\jupyter\test\test.spec 65 INFO: UPX is not available. 66 INFO: Extending PYTHONPATH with paths ['D:\\hy\\源代码\\jupyter\\test', 'D:\\hy\\源代码\\jupyter\\test'] 66 INFO: checking Analysis 66 INFO: Building Analysis because Analysis-00.toc is non existent 66 INFO: Initializing module dependency graph... 70 INFO: Caching module graph hooks... 77 INFO: Analyzing base_library.zip ... 2399 INFO: Processing pre-find module path hook distutils 2400 INFO: distutils: retargeting to non-venv dir 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\\lib' 4061 INFO: Caching module dependency graph... 4162 INFO: running Analysis Analysis-00.toc Traceback (most recent call last): File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\win32ctypes\pywin32\pywintypes.py", line 35, in pywin32error yield File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\win32ctypes\pywin32\win32api.py", line 43, in LoadLibraryEx return _dll._LoadLibraryEx(fileName, 0, flags) File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\win32ctypes\core\ctypes\_util.py", line 42, in check_null raise make_error(function, function_name) OSError: [WinError 1920] 系统无法访问此文件。 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts\pyinstaller.exe\__main__.py", line 7, in <module> File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\PyInstaller\__main__.py", line 114, in run run_build(pyi_config, spec_file, **vars(args)) File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\PyInstaller\__main__.py", line 65, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\PyInstaller\building\build_main.py", line 734, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\PyInstaller\building\build_main.py", line 681, in build exec(code, spec_namespace) File "D:\hy\源代码\jupyter\test\test.spec", line 6, in <module> a = Analysis(['test.py'], File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\PyInstaller\building\build_main.py", line 244, in __init__ self.__postinit__() File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\PyInstaller\building\datastruct.py", line 160, in __postinit__ self.assemble() File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\PyInstaller\building\build_main.py", line 393, in assemble self.binaries.extend(bindepend.Dependencies([('', python, '')], File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\PyInstaller\depend\bindepend.py", line 228, in Dependencies for ftocnm, fn in getAssemblyFiles(pth, manifest, redirects): File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\PyInstaller\depend\bindepend.py", line 404, in getAssemblyFiles for assembly in getAssemblies(pth): File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\PyInstaller\depend\bindepend.py", line 355, in getAssemblies res = GetManifestResources(pth) File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\PyInstaller\utils\win32\winmanifest.py", line 1007, in GetManifestResources return winresource.GetResources(filename, [RT_MANIFEST], names, languages) File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\PyInstaller\utils\win32\winresource.py", line 170, in GetResources hsrc = win32api.LoadLibraryEx(filename, 0, LOAD_LIBRARY_AS_DATAFILE) File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\win32ctypes\pywin32\win32api.py", line 43, in LoadLibraryEx return _dll._LoadLibraryEx(fileName, 0, flags) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\contextlib.py", line 131, in __exit__ self.gen.throw(type, value, traceback) File "C:\Users\hy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\win32ctypes\pywin32\pywintypes.py", line 37, in pywin32error raise error(exception.winerror, exception.function, exception.strerror) win32ctypes.pywin32.pywintypes.error: (1920, 'LoadLibraryExW', '系统无法访问此文件。')

求助:pyinstaller3.5 打包 WARNING: Cannot read QLibraryInfo..... json.decoder.JSONDecodeError..

求助,python新手,installer打包问题... --- 我是直接安装Anaconda pyinstaller是下载的包,然后直接python setup.py install --- 版本信息: PyQt:PyQt5-5.12.1 Python:Python 3.5.2 :: Anaconda 4.2.0 (64-bit) pyinstaller:3.5.dev0+14b6e6564 --- 下面是报错 ----- ```` C:\CodeNew\pythonEx\excel>pyinstaller -F UnitClassification.py 573 INFO: PyInstaller: 3.5.dev0+14b6e6564 573 INFO: Python: 3.5.2 575 INFO: Platform: Windows-10-10.0.17134-SP0 583 INFO: wrote C:\CodeNew\pythonEx\excel\UnitClassification.spec 588 INFO: UPX is not available. 590 INFO: Extending PYTHONPATH with paths ['C:\\CodeNew\\pythonEx\\excel', 'C:\\CodeNew\\pythonEx\\excel'] 591 INFO: checking Analysis 910 INFO: Building because C:\Users\wen\Anaconda3\lib\site-packages\PyQt5\__init__.py changed 911 INFO: Initializing module dependency graph... 918 INFO: Initializing module graph hooks... 928 INFO: Analyzing base_library.zip ... 8230 INFO: running Analysis Analysis-00.toc 9060 INFO: Caching module hooks... 9066 INFO: Analyzing C:\CodeNew\pythonEx\excel\UnitClassification.py 9247 INFO: Processing pre-find module path hook distutils 9823 INFO: Processing pre-safe import module hook six.moves 18032 INFO: Processing pre-safe import module hook setuptools.extern.six.moves 18932 INFO: Processing pre-find module path hook site 18938 INFO: site: retargeting to fake-dir 'c:\\users\\wen\\anaconda3\\lib\\site-packages\\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\\PyInstaller\\fake-modules' 18982 INFO: Processing pre-safe import module hook win32com 102468 INFO: Loading module hooks... 102469 INFO: Loading module hook "hook-PyQt5.py"... 102560 WARNING: Cannot read QLibraryInfo output: raised Expecting value: line 1 column 1 (char 0) when decoding: Traceback (most recent call last): File "<string>", line 11, in <module> ImportError: DLL load failed: 找不到指定的模块。 Traceback (most recent call last): File "C:\Users\wen\Anaconda3\Scripts\pyinstaller-script.py", line 11, in <module> load_entry_point('PyInstaller==3.5.dev0+14b6e6564', 'console_scripts', 'pyinstaller')() File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\__main__.py", line 111, in run run_build(pyi_config, spec_file, **vars(args)) File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\__main__.py", line 63, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\build_main.py", line 844, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\build_main.py", line 791, in build exec(code, spec_namespace) File "C:\CodeNew\pythonEx\excel\UnitClassification.spec", line 17, in <module> noarchive=False) File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\build_main.py", line 243, in __init__ self.__postinit__() File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\datastruct.py", line 158, in __postinit__ self.assemble() File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\build_main.py", line 502, in assemble module_hook.post_graph() File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\imphook.py", line 410, in post_graph self._load_hook_module() File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\imphook.py", line 377, in _load_hook_module self.hook_module_name, self.hook_filename) File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\compat.py", line 785, in importlib_load_source return mod_loader.load_module() File "<frozen importlib._bootstrap_external>", line 388, in _check_name_wrapper File "<frozen importlib._bootstrap_external>", line 809, in load_module File "<frozen importlib._bootstrap_external>", line 668, in load_module File "<frozen importlib._bootstrap>", line 268, in _load_module_shim File "<frozen importlib._bootstrap>", line 693, in _load File "<frozen importlib._bootstrap>", line 673, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 665, in exec_module File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\hooks\hook-PyQt5.py", line 23, in <module> collect_system_data_files(pyqt5_library_info.location['PrefixPath'], File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\utils\hooks\qt.py", line 70, in __getattr__ qli = json.loads(json_str) File "C:\Users\wen\Anaconda3\lib\json\__init__.py", line 319, in loads return _default_decoder.decode(s) File "C:\Users\wen\Anaconda3\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\wen\Anaconda3\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ```

python使用pyinstaller封装时报错

我使用 pyinstaller封装程序的时候报错FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\pyinstaller-3.5.dev0+0b6f1ec6f-py3.7.egg\\PyInstaller\\loader\\rthooks\\pyi_rth_nltk.py' 可是在对应的目录下面我可以找到相应的py文件,请问怎么解决? PS:C币不够了,请体谅一下

Python3.7+Pyside2 运行exe文件提示“ImportError: DLL load failed: 找不到指定的程序。

# Python3.7+Pyside2 运行exe文件提示“ImportError: DLL load failed: 找不到指定的程序 1.问题描述 a.python 3.7 + pyside2 (只用pyside2,没有使用PyQt5) b.使用pyinstaller -F xxx.py 打包,生成xxx.exe c.使用cmd运行exe文件 2.报错 Traceback (most recent call last): File "PyInstaller\loader\rthooks\pyi_rth_qt5plugins.py", line 47, in <module> ModuleNotFoundError: No module named 'PyQt5' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "PyInstaller\loader\rthooks\pyi_rth_qt5plugins.py", line 49, in <module> ImportError: DLL load failed: 找不到指定的程序。 [16072] Failed to execute script pyi_rth_qt5plugins 不知道为啥提示No module named 'PyQt5',在安装的lib中也只有pyside2; 多谢大神指点。 20190730,更新: 经过多次尝试和修改,发现lib库的安装的问题。代码中没有调用QT5的,在lib安装的时候,如果是使用pycharm setting中安装,安装的路径是在项目的文件夹,如果使用python的终端命令pip进行安装,安装在python的lib目录下,两个路径有时候不能完全的调用。 后来重新都是统一使用python 终端 pip命令安装,问题解决。

pyinstaller打包问题ImportError: No module named sip

``` C:\python27\Scripts\pyinstaller\myfile\dist>myfile.exe Traceback (most recent call last): File "pyinstaller\myfile.py", line 2, in <module> File "C:\python27\Scripts\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 684, in load_module module = imp.load_module(fullname, fp, filename, ext_tuple) ImportError: No module named sip [20104] Failed to execute script myfile ```

pyinstaller打包处理的程序用不了

warn-xxx.txt文件的信息如下,求大佬处理 This file lists modules PyInstaller was not able to find. This does not necessarily mean this module is required for running you program. Python and Python 3rd-party packages include a lot of conditional or optional module. For example the module 'ntpath' only exists on Windows, whereas the module 'posixpath' only exists on Posix systems. Types if import: * top-level: imported at the top-level - look at these first * conditional: imported within an if-statement * delayed: imported from within a function * optional: imported within a try-except-statement IMPORTANT: Do NOT post this list to the issue-tracker. Use it as a basis for yourself tracking down the missing module. Thanks! missing module named pyimod03_importers - imported by PyInstaller.loader.pyimod02_archive (delayed, conditional), c:\program files\python37\lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py (top-level) missing module named 'pkg_resources.extern.pyparsing' - imported by pkg_resources._vendor.packaging.requirements (top-level), pkg_resources._vendor.packaging.markers (top-level) missing module named 'com.sun' - imported by pkg_resources._vendor.appdirs (delayed, conditional, optional) missing module named com - imported by pkg_resources._vendor.appdirs (delayed) missing module named win32api - imported by distutils.msvccompiler (optional), pkg_resources._vendor.appdirs (delayed, conditional, optional) missing module named win32com.shell - imported by pkg_resources._vendor.appdirs (delayed, conditional, optional) missing module named _uuid - imported by uuid (optional) missing module named netbios - imported by uuid (delayed) missing module named win32wnet - imported by uuid (delayed) missing module named __builtin__ - imported by numpy.core.numerictypes (conditional), numpy.core.numeric (conditional), numpy.lib.function_base (conditional), numpy.lib._iotools (conditional), numpy.ma.core (conditional), numpy.distutils.misc_util (delayed, conditional), numpy (conditional), pymysql._compat (conditional), pkg_resources._vendor.pyparsing (conditional), setuptools._vendor.pyparsing (conditional) missing module named ordereddict - imported by pkg_resources._vendor.pyparsing (optional), setuptools._vendor.pyparsing (optional) missing module named StringIO - imported by PyInstaller.lib.modulegraph._compat (conditional), PyInstaller.lib.modulegraph.zipio (conditional), setuptools._vendor.six (conditional), numpy.lib.utils (delayed, conditional), numpy.lib.format (delayed, conditional), numpy.testing._private.utils (conditional), six (conditional), urllib3.packages.six (conditional), requests.compat (conditional), selenium.webdriver.remote.webelement (optional), pkg_resources._vendor.six (conditional) missing module named _scproxy - imported by urllib.request (conditional) missing module named 'macholib.MachO' - imported by PyInstaller.depend.dylib (delayed), PyInstaller.depend.bindepend (delayed), PyInstaller.utils.osx (top-level) missing module named macholib - imported by PyInstaller.depend.dylib (delayed, conditional) missing module named _pkgutil - imported by PyInstaller.lib.modulegraph.modulegraph (delayed, optional) missing module named dis3 - imported by PyInstaller.lib.modulegraph._compat (conditional) missing module named urllib.pathname2url - imported by urllib (conditional), PyInstaller.lib.modulegraph._compat (conditional) missing module named pyimod00_crypto_key - imported by PyInstaller.loader.pyimod02_archive (delayed, optional) missing module named thread - imported by numpy.core.arrayprint (conditional, optional), PyInstaller.loader.pyimod02_archive (conditional) missing module named 'macholib.dyld' - imported by PyInstaller.depend.bindepend (delayed) missing module named 'macholib.mach_o' - imported by PyInstaller.depend.bindepend (delayed) missing module named Crypto - imported by PyInstaller.building.makespec (delayed, conditional, optional) missing module named win32ctypes.core._time - imported by win32ctypes.core (top-level), win32ctypes.pywin32.win32api (top-level) missing module named win32ctypes.core._system_information - imported by win32ctypes.core (top-level), win32ctypes.pywin32.win32api (top-level) missing module named win32ctypes.core._resource - imported by win32ctypes.core (top-level), win32ctypes.pywin32.win32api (top-level) missing module named win32ctypes.core._dll - imported by win32ctypes.core (top-level), win32ctypes.pywin32.win32api (top-level) missing module named win32ctypes.core._common - imported by win32ctypes.core (top-level), win32ctypes.pywin32.win32api (top-level), win32ctypes.pywin32.win32cred (top-level) missing module named win32ctypes.core._authentication - imported by win32ctypes.core (top-level), win32ctypes.pywin32.win32cred (top-level) missing module named cffi - imported by win32ctypes.core (optional) missing module named UserDict - imported by PyInstaller.compat (conditional), pytz.lazy (optional) missing module named multiprocessing.set_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level) missing module named multiprocessing.get_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level) missing module named multiprocessing.TimeoutError - imported by multiprocessing (top-level), multiprocessing.pool (top-level) missing module named multiprocessing.get_context - imported by multiprocessing (top-level), multiprocessing.pool (top-level), multiprocessing.managers (top-level), multiprocessing.sharedctypes (top-level) missing module named multiprocessing.BufferTooShort - imported by multiprocessing (top-level), multiprocessing.connection (top-level) missing module named multiprocessing.AuthenticationError - imported by multiprocessing (top-level), multiprocessing.connection (top-level) missing module named pkg_resources.extern.packaging - imported by pkg_resources.extern (top-level), pkg_resources (top-level) missing module named pkg_resources.extern.appdirs - imported by pkg_resources.extern (top-level), pkg_resources (top-level) missing module named 'pkg_resources.extern.six.moves' - imported by pkg_resources (top-level), pkg_resources._vendor.packaging.requirements (top-level) missing module named pkg_resources.extern.six - imported by pkg_resources.extern (top-level), pkg_resources (top-level) missing module named 'multiprocessing.forking' - imported by c:\program files\python37\lib\site-packages\PyInstaller\loader\rthooks\pyi_rth_multiprocessing.py (optional) missing module named resource - imported by posix (top-level), E:\yxrj\dingzhi\cj\231.py (top-level) missing module named posix - imported by os (conditional, optional), E:\yxrj\dingzhi\cj\231.py (top-level) missing module named _posixsubprocess - imported by subprocess (conditional), multiprocessing.util (delayed), E:\yxrj\dingzhi\cj\231.py (top-level) missing module named readline - imported by cmd (delayed, conditional, optional), code (delayed, conditional, optional), pdb (delayed, optional), E:\yxrj\dingzhi\cj\231.py (top-level) excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional), PyInstaller.loader.pyimod02_archive (delayed, conditional), E:\yxrj\dingzhi\cj\231.py (top-level) missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional), E:\yxrj\dingzhi\cj\231.py (top-level) missing module named _winreg - imported by platform (delayed, optional), numpy.distutils.cpuinfo (delayed, conditional, optional), requests.utils (delayed, conditional, optional), selenium.webdriver.firefox.firefox_binary (delayed, optional), E:\yxrj\dingzhi\cj\231.py (top-level), pkg_resources._vendor.appdirs (delayed) missing module named java - imported by platform (delayed), E:\yxrj\dingzhi\cj\231.py (top-level) missing module named 'java.lang' - imported by platform (delayed, optional), xml.sax._exceptions (conditional), E:\yxrj\dingzhi\cj\231.py (top-level) missing module named vms_lib - imported by platform (delayed, conditional, optional), E:\yxrj\dingzhi\cj\231.py (top-level) missing module named termios - imported by tty (top-level), getpass (optional), E:\yxrj\dingzhi\cj\231.py (top-level) missing module named urllib.getproxies_environment - imported by urllib (conditional), requests.compat (conditional) missing module named urllib.proxy_bypass_environment - imported by urllib (conditional), requests.compat (conditional) missing module named urllib.proxy_bypass - imported by urllib (conditional), requests.compat (conditional) missing module named urllib.getproxies - imported by urllib (conditional), requests.compat (conditional) missing module named urllib.unquote_plus - imported by urllib (conditional), requests.compat (conditional) missing module named urllib.quote_plus - imported by urllib (conditional), requests.compat (conditional) missing module named urllib.unquote - imported by urllib (conditional), requests.compat (conditional) missing module named urllib.urlencode - imported by urllib (optional), urllib3.packages.rfc3986.compat (optional), requests.compat (conditional) missing module named urllib.quote - imported by urllib (optional), urllib3.packages.rfc3986.compat (optional), requests.compat (conditional) missing module named grp - imported by shutil (optional), tarfile (optional), pathlib (delayed), distutils.archive_util (optional), E:\yxrj\dingzhi\cj\231.py (top-level) missing module named 'org.python' - imported by pickle (optional), xml.sax (delayed, conditional), setuptools.sandbox (conditional), E:\yxrj\dingzhi\cj\231.py (top-level) missing module named org - imported by copy (optional), E:\yxrj\dingzhi\cj\231.py (top-level) missing module named pwd - imported by posixpath (delayed, conditional), shutil (optional), tarfile (optional), http.server (delayed, optional), webbrowser (delayed), pathlib (delayed, conditional, optional), distutils.util (delayed, conditional), distutils.archive_util (optional), netrc (delayed, conditional), getpass (delayed), E:\yxrj\dingzhi\cj\231.py (top-level) missing module named urllib2 - imported by numpy.lib._datasource (delayed, conditional), requests.compat (conditional), selenium.webdriver.common.utils (delayed, optional), selenium.webdriver.common.service (delayed, optional) missing module named urlparse - imported by numpy.lib._datasource (delayed, conditional), requests.compat (conditional), selenium.webdriver.remote.remote_connection (optional) runtime module named urllib3.packages.six.moves - imported by http.client (top-level), urllib3.connectionpool (top-level), urllib3.util.response (top-level), 'urllib3.packages.six.moves.urllib' (top-level), urllib3.response (top-level), urllib3.util.queue (top-level) missing module named 'OpenSSL.crypto' - imported by urllib3.contrib.pyopenssl (delayed) missing module named 'cryptography.x509' - imported by urllib3.contrib.pyopenssl (delayed, optional) missing module named 'cryptography.hazmat' - imported by pymysql._auth (optional), urllib3.contrib.pyopenssl (top-level) missing module named cryptography - imported by pymysql._auth (optional), urllib3.contrib.pyopenssl (top-level), requests (optional) missing module named OpenSSL - imported by urllib3.contrib.pyopenssl (top-level) missing module named 'backports.ssl_match_hostname' - imported by setuptools.ssl_support (optional), urllib3.packages.ssl_match_hostname (optional) missing module named brotli - imported by urllib3.util.request (optional), urllib3.response (optional) missing module named "'urllib3.packages.six.moves.urllib'.parse" - imported by urllib3.request (top-level), urllib3.poolmanager (top-level) missing module named Queue - imported by urllib3.util.queue (conditional) missing module named httplib - imported by selenium.webdriver.safari.webdriver (optional), selenium.webdriver.blackberry.webdriver (optional), selenium.webdriver.webkitgtk.webdriver (optional) missing module named cStringIO - imported by selenium.webdriver.firefox.firefox_profile (optional) missing module named copy_reg - imported by numpy.core (conditional), soupsieve.util (conditional), cStringIO (top-level) missing module named 'backports.functools_lru_cache' - imported by soupsieve.util (conditional) missing module named iconv_codec - imported by bs4.dammit (optional) missing module named cchardet - imported by bs4.dammit (optional) missing module named lxml - imported by bs4.builder._lxml (top-level) missing module named 'html5lib.treebuilders' - imported by bs4.builder._html5lib (optional) missing module named 'html5lib.constants' - imported by bs4.builder._html5lib (top-level) missing module named html5lib - imported by bs4.builder._html5lib (top-level) missing module named Cookie - imported by requests.compat (conditional) missing module named cookielib - imported by requests.compat (conditional) missing module named simplejson - imported by pandas.util._print_versions (delayed, conditional, optional), requests.compat (optional) missing module named socks - imported by urllib3.contrib.socks (optional) missing module named _dummy_threading - imported by dummy_threading (optional) missing module named ConfigParser - imported by numpy.distutils.system_info (conditional), numpy.distutils.npy_pkg_config (conditional), pymysql.optionfile (conditional) missing module named scipy - imported by numpy.testing._private.nosetester (delayed, conditional), pandas.core.missing (delayed) missing module named numexpr - imported by pandas.core.computation.expressions (conditional), pandas.core.computation.engines (delayed) missing module named 'scipy.stats' - imported by pandas.plotting._matplotlib.hist (delayed), pandas.plotting._matplotlib.misc (delayed, conditional), pandas.core.nanops (delayed, conditional) missing module named 'scipy.signal' - imported by pandas.core.window (delayed, conditional) missing module named commands - imported by numpy.distutils.cpuinfo (conditional) missing module named setuptools.extern.packaging - imported by setuptools.extern (top-level), setuptools.dist (top-level), setuptools.command.egg_info (top-level) missing module named 'setuptools.extern.six' - imported by setuptools (top-level), setuptools.extension (top-level) missing module named setuptools.extern.six.moves.filterfalse - imported by setuptools.extern.six.moves (top-level), setuptools.dist (top-level), setuptools.msvc (top-level) missing module named setuptools.extern.six.moves.filter - imported by setuptools.extern.six.moves (top-level), setuptools.dist (top-level), setuptools.ssl_support (top-level), setuptools.command.py36compat (top-level) missing module named _manylinux - imported by setuptools.pep425tags (delayed, optional) missing module named wincertstore - imported by setuptools.ssl_support (delayed, optional) missing module named backports - imported by setuptools.ssl_support (optional) missing module named 'setuptools._vendor.six.moves' - imported by 'setuptools._vendor.six.moves' (top-level) missing module named 'setuptools.extern.pyparsing' - imported by setuptools._vendor.packaging.requirements (top-level), setuptools._vendor.packaging.markers (top-level) missing module named 'setuptools.extern.packaging.version' - imported by setuptools.msvc (top-level) missing module named setuptools.extern.six.moves.map - imported by setuptools.extern.six.moves (top-level), setuptools.dist (top-level), setuptools.command.easy_install (top-level), setuptools.sandbox (top-level), setuptools.package_index (top-level), setuptools.ssl_support (top-level), setuptools.command.egg_info (top-level), setuptools.namespaces (top-level) runtime module named setuptools.extern.six.moves - imported by setuptools.dist (top-level), setuptools.py33compat (top-level), setuptools.command.easy_install (top-level), setuptools.sandbox (top-level), setuptools.command.setopt (top-level), setuptools.package_index (top-level), setuptools.ssl_support (top-level), setuptools.command.egg_info (top-level), setuptools.command.py36compat (top-level), setuptools.namespaces (top-level), setuptools.msvc (top-level), 'setuptools._vendor.six.moves' (top-level) missing module named setuptools.extern.six - imported by setuptools.extern (top-level), setuptools.monkey (top-level), setuptools.dist (top-level), setuptools.extern.six.moves (top-level), setuptools.py33compat (top-level), setuptools.config (top-level), setuptools.command.easy_install (top-level), setuptools.sandbox (top-level), setuptools.py27compat (top-level), setuptools.package_index (top-level), setuptools.wheel (top-level), setuptools.command.egg_info (top-level), setuptools.command.sdist (top-level), setuptools.command.bdist_egg (top-level), setuptools.unicode_utils (top-level), setuptools.glob (top-level), setuptools.command.develop (top-level) missing module named 'numpy_distutils.cpuinfo' - imported by numpy.f2py.diagnose (delayed, conditional, optional) missing module named 'numpy_distutils.fcompiler' - imported by numpy.f2py.diagnose (delayed, conditional, optional) missing module named 'numpy_distutils.command' - imported by numpy.f2py.diagnose (delayed, conditional, optional) missing module named numpy_distutils - imported by numpy.f2py.diagnose (delayed, optional) missing module named 'nose.plugins' - imported by numpy.testing._private.noseclasses (top-level), numpy.testing._private.nosetester (delayed) missing module named numpy.core.number - imported by numpy.core (delayed), numpy.testing._private.utils (delayed) missing module named numpy.core.signbit - imported by numpy.core (delayed), numpy.testing._private.utils (delayed) missing module named numpy.core.float64 - imported by numpy.core (delayed), numpy.testing._private.utils (delayed) missing module named numpy.core.integer - imported by numpy.core (top-level), numpy.fft.helper (top-level) missing module named numpy.core.conjugate - imported by numpy.core (top-level), numpy.fft.pocketfft (top-level) missing module named numpy.core.sign - imported by numpy.core (top-level), numpy.linalg.linalg (top-level) missing module named numpy.core.divide - imported by numpy.core (top-level), numpy.linalg.linalg (top-level) missing module named numpy.core.object_ - imported by numpy.core (top-level), numpy.linalg.linalg (top-level) missing module named numpy.core.geterrobj - imported by numpy.core (top-level), numpy.linalg.linalg (top-level) missing module named numpy.core.sqrt - imported by numpy.core (top-level), numpy.linalg.linalg (top-level), numpy.fft.pocketfft (top-level) missing module named numpy.core.add - imported by numpy.core (top-level), numpy.linalg.linalg (top-level) missing module named numpy.core.complexfloating - imported by numpy.core (top-level), numpy.linalg.linalg (top-level) missing module named numpy.core.inexact - imported by numpy.core (top-level), numpy.linalg.linalg (top-level) missing module named numpy.core.cdouble - imported by numpy.core (top-level), numpy.linalg.linalg (top-level) missing module named numpy.core.csingle - imported by numpy.core (top-level), numpy.linalg.linalg (top-level) missing module named numpy.core.double - imported by numpy.core (top-level), numpy.linalg.linalg (top-level) missing module named numpy.core.single - imported by numpy.core (top-level), numpy.linalg.linalg (top-level) missing module named numpy.core.float32 - imported by numpy.core (top-level), numpy.testing._private.utils (top-level) missing module named numpy.core.intp - imported by numpy.core (top-level), numpy.testing._private.utils (top-level), numpy.linalg.linalg (top-level) missing module named numpy.eye - imported by numpy (delayed), numpy.core.numeric (delayed) missing module named dummy_thread - imported by numpy.core.arrayprint (conditional, optional) missing module named 'nose.util' - imported by numpy.testing._private.noseclasses (top-level) missing module named nose - imported by numpy.testing._private.utils (delayed, optional), numpy.testing._private.decorators (delayed), numpy.testing._private.noseclasses (top-level) missing module named win32pdh - imported by numpy.testing._private.utils (delayed, conditional) missing module named __svn_version__ - imported by numpy.f2py.__version__ (optional) missing module named numarray - imported by numpy.distutils.system_info (delayed, conditional, optional) missing module named Numeric - imported by numpy.distutils.system_info (delayed, conditional, optional) missing module named win32con - imported by distutils.msvccompiler (optional) missing module named _curses - imported by curses (top-level), curses.has_key (top-level) missing module named pytest - imported by numpy._pytesttester (delayed), pandas.util._tester (delayed, optional), pandas.util.testing (delayed, conditional, optional) missing module named future_builtins - imported by numpy.lib.npyio (conditional) missing module named cpickle - imported by numpy.compat.py3k (conditional) missing module named pickle5 - imported by numpy.compat.py3k (conditional, optional) missing module named numpy.histogramdd - imported by numpy (delayed), numpy.lib.twodim_base (delayed) missing module named numpy.lib.i0 - imported by numpy.lib (top-level), numpy.dual (top-level) missing module named 'scipy.sparse' - imported by pandas.core.sparse.scipy_sparse (delayed), pandas.core.arrays.sparse (delayed), pandas.core.dtypes.common (delayed, conditional, optional) missing module named botocore - imported by pandas.io.s3 (delayed) missing module named 'pyarrow.parquet' - imported by pandas.io.parquet (delayed) missing module named pyarrow - imported by pandas.io.feather_format (delayed) missing module named contextmanager - imported by dateutil.tz.tz (optional) runtime module named six.moves - imported by dateutil.tz.tz (top-level), dateutil.tz.win (top-level), dateutil.rrule (top-level) missing module named six.moves.range - imported by six.moves (top-level), dateutil.rrule (top-level) missing module named dateutil.tz.tzfile - imported by dateutil.tz (top-level), dateutil.zoneinfo (top-level) missing module named dateutil.tz.tzlocal - imported by dateutil.tz (top-level), dateutil.rrule (top-level) missing module named dateutil.tz.tzutc - imported by dateutil.tz (top-level), dateutil.rrule (top-level) missing module named PyQt4 - imported by pandas.io.clipboard.clipboards (delayed, optional), pandas.io.clipboard (delayed, conditional, optional) missing module named PyQt5 - imported by pandas.io.clipboard.clipboards (delayed, optional), pandas.io.clipboard (delayed, conditional, optional) missing module named qtpy - imported by pandas.io.clipboard.clipboards (delayed, optional), pandas.io.clipboard (delayed, conditional, optional) missing module named 'sqlalchemy.types' - imported by pandas.io.sql (delayed, conditional) missing module named 'sqlalchemy.schema' - imported by pandas.io.sql (delayed, conditional) missing module named sqlalchemy - imported by pandas.io.sql (delayed, conditional, optional) missing module named tables - imported by pandas.io.pytables (delayed, conditional) missing module named xlwt - imported by pandas.io.excel._xlwt (delayed) missing module named xlsxwriter - imported by pandas.io.excel._xlsxwriter (delayed) missing module named 'openpyxl.styles' - imported by pandas.io.excel._openpyxl (delayed) missing module named 'openpyxl.style' - imported by pandas.io.excel._openpyxl (delayed) missing module named openpyxl - imported by pandas.io.excel._openpyxl (delayed, conditional) missing module named xlrd - imported by pandas.io.excel._xlrd (delayed) missing module named 'odf.namespaces' - imported by pandas.io.excel._odfreader (delayed) missing module named 'odf.table' - imported by pandas.io.excel._odfreader (delayed) missing module named 'odf.opendocument' - imported by pandas.io.excel._odfreader (delayed) missing module named odf - imported by pandas.io.excel._odfreader (delayed) missing module named matplotlib - imported by pandas.plotting._matplotlib.boxplot (top-level), pandas.plotting._matplotlib.compat (delayed, optional), pandas.plotting._matplotlib.timeseries (delayed), pandas.plotting._matplotlib.core (delayed), pandas.io.formats.style (optional) missing module named 'matplotlib.pyplot' - imported by pandas.plotting._matplotlib.style (delayed), pandas.plotting._matplotlib.tools (delayed), pandas.plotting._matplotlib.core (delayed), pandas.plotting._matplotlib.timeseries (delayed), pandas.plotting._matplotlib.boxplot (delayed), pandas.plotting._matplotlib.hist (delayed), pandas.plotting._matplotlib.misc (delayed), pandas.plotting._matplotlib (delayed), pandas.io.formats.style (optional), pandas.util.testing (delayed) missing module named numpy.array - imported by numpy (top-level), numpy.ma.core (top-level), numpy.ma.extras (top-level), numpy.ma.mrecords (top-level), numpy.ctypeslib (top-level) missing module named numpy.recarray - imported by numpy (top-level), numpy.ma.mrecords (top-level) missing module named numpy.ndarray - imported by numpy (top-level), numpy.ma.core (top-level), numpy.ma.extras (top-level), numpy.ma.mrecords (top-level), numpy.ctypeslib (top-level), pandas.compat.numpy.function (top-level) missing module named numpy.dtype - imported by numpy (top-level), numpy.ma.mrecords (top-level), numpy.ctypeslib (top-level) missing module named numpy.bool_ - imported by numpy (top-level), numpy.ma.core (top-level), numpy.ma.mrecords (top-level) missing module named 'matplotlib.ticker' - imported by pandas.plotting._matplotlib.converter (top-level), pandas.plotting._matplotlib.tools (top-level), pandas.plotting._matplotlib.core (delayed) missing module named 'matplotlib.table' - imported by pandas.plotting._matplotlib.tools (top-level) missing module named 'matplotlib.colors' - imported by pandas.plotting._matplotlib.style (top-level) missing module named 'matplotlib.cm' - imported by pandas.plotting._matplotlib.style (top-level) missing module named 'matplotlib.patches' - imported by pandas.plotting._matplotlib.misc (top-level) missing module named 'matplotlib.lines' - imported by pandas.plotting._matplotlib.misc (top-level) missing module named 'matplotlib.axes' - imported by pandas.plotting._matplotlib.core (delayed) missing module named 'matplotlib.units' - imported by pandas.plotting._matplotlib.converter (top-level) missing module named 'matplotlib.transforms' - imported by pandas.plotting._matplotlib.converter (top-level) missing module named 'matplotlib.dates' - imported by pandas.plotting._matplotlib.converter (top-level) missing module named numpy.expand_dims - imported by numpy (top-level), numpy.ma.core (top-level) missing module named numpy.iscomplexobj - imported by numpy (top-level), numpy.ma.core (top-level) missing module named numpy.amin - imported by numpy (top-level), numpy.ma.core (top-level) missing module named numpy.amax - imported by numpy (top-level), numpy.ma.core (top-level) missing module named 'IPython.core' - imported by pandas.io.formats.printing (delayed, conditional) missing module named IPython - imported by pandas.io.formats.printing (delayed) missing module named s3fs - imported by pandas.io.common (delayed, optional) missing module named sets - imported by pytz.tzinfo (optional) missing module named numpy.random.randn - imported by numpy.random (top-level), pandas.util.testing (top-level) missing module named numpy.random.rand - imported by numpy.random (top-level), pandas.util.testing (top-level) missing module named hypothesis - imported by pandas.util._tester (delayed, optional) missing module named 'lxml.etree' - imported by pandas.io.html (delayed) missing module named 'lxml.html' - imported by pandas.io.html (delayed)

pyinstaller打包后,在别的机子运行出错?

求大大帮忙 python3.64版本 [rabird.winio](https://pypi.org/project/rabird.winio/ "") ←地址 简单的官方模块示例,本机打包运行没问题, 在其他机子就报错 ![图片说明](https://img-ask.csdn.net/upload/201805/10/1525958507_215901.png) 示例代码: ``` import rabird.winio import time import atexit # KeyBoard Commands # Command port KBC_KEY_CMD = 0x64 # Data port KBC_KEY_DATA = 0x60 __winio = None def __get_winio(): global __winio if __winio is None: __winio = rabird.winio.WinIO() def __clear_winio(): global __winio __winio = None atexit.register(__clear_winio) return __winio def wait_for_buffer_empty(): ''' Wait keyboard buffer empty ''' winio = __get_winio() dwRegVal = 0x02 while (dwRegVal & 0x02): dwRegVal = winio.get_port_byte(KBC_KEY_CMD) def key_down(scancode): winio = __get_winio() wait_for_buffer_empty() winio.set_port_byte(KBC_KEY_CMD, 0xd2) wait_for_buffer_empty() winio.set_port_byte(KBC_KEY_DATA, scancode) def key_up(scancode): winio = __get_winio() wait_for_buffer_empty() winio.set_port_byte( KBC_KEY_CMD, 0xd2) wait_for_buffer_empty() winio.set_port_byte( KBC_KEY_DATA, scancode | 0x80) def key_press(scancode, press_time = 0.2): key_down( scancode ) time.sleep( press_time ) key_up( scancode ) # Press 'A' key Scancodes references : Keyboard scancodes key_press(0x1E) ```

pyinstaller打包后的exe中无法调用模块的reload方法吗?

我写了一个脚本,定时刷新并开始任务,又写了一个apscheduler调度框架的job.py,每次在main方法中刷新时都会reload一下job模块,在IDE里测试的时候能够正常运行,但是打包成exe之后就不行了,一次reload都没有执行。想问问这到底是什么原因造成的,有木有大神能回答一下啊!

用pyinstaller封装python3.6脚本,生成的exe无法加载所需的包怎么办?

我已经尝试了各种办法,在创建exe的时候用-p命令添加python\lib\side-package里面我所要用的包的文件夹路径,或者在后面加上--path=,但是生成的exe文件在运行的时候还是会显示这样: ``` [15664] PyInstaller Bootloader 3.x [15664] LOADER: executable is E:\python\exe\dist\Timer.exe [15664] LOADER: homepath is E:\python\exe\dist [15664] LOADER: _MEIPASS2 is NULL [15664] LOADER: archivename is E:\python\exe\dist\Timer.exe [15664] LOADER: Extracting binaries [15664] LOADER: Executing self as child [15664] LOADER: set _MEIPASS2 to C:\Users\pm494\AppData\Local\Temp\_MEI156642 [15664] LOADER: Setting up to run child [15664] LOADER: Creating child process [15664] LOADER: Waiting for child process to finish... [17992] PyInstaller Bootloader 3.x [17992] LOADER: executable is E:\python\exe\dist\Timer.exe [17992] LOADER: homepath is E:\python\exe\dist [17992] LOADER: _MEIPASS2 is C:\Users\pm494\AppData\Local\Temp\_MEI156642 [17992] LOADER: archivename is E:\python\exe\dist\Timer.exe [17992] LOADER: SetDllDirectory(C:\Users\pm494\AppData\Local\Temp\_MEI156642) [17992] LOADER: Already in the child - running user's code. [17992] LOADER: manifestpath: C:\Users\pm494\AppData\Local\Temp\_MEI156642\Timer.exe.manifest [17992] LOADER: Activation context created [17992] LOADER: Activation context activated [17992] LOADER: Python library: C:\Users\pm494\AppData\Local\Temp\_MEI156642\python36.dll [17992] LOADER: Loaded functions from Python library. [17992] LOADER: Manipulating environment (sys.path, sys.prefix) [17992] LOADER: Pre-init sys.path is C:\Users\pm494\AppData\Local\Temp\_MEI156642\base_library.zip;C:\Users\pm494\AppData\Local\Temp\_MEI156642 [17992] LOADER: sys.prefix is C:\Users\pm494\AppData\Local\Temp\_MEI156642 [17992] LOADER: Setting runtime options [17992] LOADER: Bootloader option: pyi-windows-manifest-filename Timer.exe.manifest [17992] LOADER: Initializing python [17992] LOADER: Overriding Python's sys.path [17992] LOADER: Post-init sys.path is C:\Users\pm494\AppData\Local\Temp\_MEI156642\base_library.zip;C:\Users\pm494\AppData\Local\Temp\_MEI156642 [17992] LOADER: Setting sys.argv [17992] LOADER: setting sys._MEIPASS [17992] LOADER: importing modules from CArchive [17992] LOADER: extracted struct [17992] LOADER: callfunction returned... [17992] LOADER: extracted pyimod01_os_path [17992] LOADER: callfunction returned... [17992] LOADER: extracted pyimod02_archive [17992] LOADER: callfunction returned... [17992] LOADER: extracted pyimod03_importers [17992] LOADER: callfunction returned... [17992] LOADER: Installing PYZ archive with Python modules. [17992] LOADER: PYZ archive: out00-PYZ.pyz [17992] LOADER: Running pyiboot01_bootstrap.py [17992] LOADER: Running pyi_rth_win32comgenpy.py [17992] LOADER: Running Timer.py Traceback (most recent call last): File "Timer.py", line 24, in <module> ModuleNotFoundError: No module named 'logilib' [17992] Failed to execute script Timer [17992] LOADER: OK. [17992] LOADER: Cleaning up Python interpreter. [15664] LOADER: Back to parent (RC: -1) [15664] LOADER: Doing cleanup [15664] LOADER: Freeing archive status for E:\python\exe\dist\Timer.exe ``` 我尝试在另一台装有python3.5和要用的包的电脑上使用pyinstaller,按照同样的方法生成exe,运行结果是一样的。我看了看代码中的24行是加载BeautifulSoup命令:from bs4 import BeautifulSoup 谷歌看了半天也找到合适的解决办法,求大神帮我看看到底是怎么回事? pyinstaller运行过程是这样的: ``` E:\python\exe>pyinstaller -F -d Timer.py --path=E:/python/exe/Lib;E:/python/exe/Lib/site-package;E:/python/exe/Lib/site-packages/xlwings;E:/python/exe/Lib/site-packages/bs4;E:/python/exe/Lib/site-packages/selenium 5 WARNING: Internal error: early pywin32 import was introduced 63 INFO: PyInstaller: 3.2.1 63 INFO: Python: 3.6.2 64 INFO: Platform: Windows-10-10.0.14393-SP0 66 INFO: wrote E:\python\exe\Timer.spec 68 INFO: UPX is not available. 71 INFO: Extending PYTHONPATH with paths ['E:\\python\\exe', 'E:\\python\\exe\\Lib', 'E:\\python\\exe\\Lib\\site-package', 'E:\\python\\exe\\Lib\\site-packages\\xlwings', 'E:\\python\\exe\\Lib\\site-packages\\bs4', 'E:\\python\\exe\\Lib\\site-packages\\selenium', 'E:\\python\\exe'] 75 INFO: checking Analysis 76 INFO: Building Analysis because out00-Analysis.toc is non existent 77 INFO: Initializing module dependency graph... 80 INFO: Initializing module graph hooks... 82 INFO: Analyzing base_library.zip ... 2889 INFO: running Analysis out00-Analysis.toc 2892 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable required by D:\workapp\Python\python.exe 3230 INFO: Caching module hooks... 3234 INFO: Analyzing E:\python\exe\Timer.py 4930 INFO: Processing pre-safe import module hook win32com 6402 INFO: Loading module hooks... 6402 INFO: Loading module hook "hook-encodings.py"... 6488 INFO: Loading module hook "hook-pydoc.py"... 6489 INFO: Loading module hook "hook-pythoncom.py"... 6706 INFO: Loading module hook "hook-pywintypes.py"... 6915 INFO: Loading module hook "hook-selenium.py"... 6920 INFO: Loading module hook "hook-win32com.py"... 6920 INFO: Loading module hook "hook-xml.dom.domreg.py"... 6921 INFO: Loading module hook "hook-xml.py"... 6940 INFO: Looking for ctypes DLLs 7045 WARNING: library coredll required via ctypes not found 7054 INFO: Analyzing run-time hooks ... 7058 INFO: Including run-time hook 'pyi_rth_win32comgenpy.py' 7067 INFO: Looking for dynamic libraries 7380 INFO: Looking for eggs 7381 INFO: Using Python library D:\workapp\Python\python36.dll 7382 INFO: Found binding redirects: [] 7389 INFO: Warnings written to E:\python\exe\build\Timer\warnTimer.txt 7401 INFO: checking PYZ 7401 INFO: Building PYZ because out00-PYZ.toc is non existent 7403 INFO: Building PYZ (ZlibArchive) E:\python\exe\build\Timer\out00-PYZ.pyz 8492 INFO: Building PYZ (ZlibArchive) E:\python\exe\build\Timer\out00-PYZ.pyz completed successfully. 8503 INFO: checking PKG 8503 INFO: Building PKG because out00-PKG.toc is non existent 8504 INFO: Building PKG (CArchive) out00-PKG.pkg 11271 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully. 11275 INFO: Bootloader D:\workapp\Python\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run_d.exe 11275 INFO: checking EXE 11276 INFO: Building EXE because out00-EXE.toc is non existent 11278 INFO: Building EXE from out00-EXE.toc 11279 INFO: Appending archive to EXE E:\python\exe\dist\Timer.exe 11288 INFO: Building EXE from out00-EXE.toc completed successfully. ``` ------------------------------------------------------------------------ 刚刚试了一下另一个包,发现问题可能就是出在脚本中的bs4上面,在加载另一个包的时候并没有问题,程序可以运行。所以为什么是bs4这个包?到底该怎么找到问题呢?

使用pyinstaller成产exe可执行文件后,运行时一闪而过

代码如下:是用pycharm写的。 ```python import win32api import win32con import keyboard import time def WithoutShift(*args): # 不带shift建的输入 for i in args: win32api.keybd_event(i, 0, 0, 0) win32api.keybd_event(i, 0, win32con.KEYEVENTF_KEYUP, 0) time.sleep(0.05) time.sleep(0.05) def WithShift(*args): win32api.keybd_event(16, 0, 0, 0) for i in args: win32api.keybd_event(i, 0, 0, 0) win32api.keybd_event(i, 0, win32con.KEYEVENTF_KEYUP, 0) time.sleep(0.05) win32api.keybd_event(16, 0, win32con.KEYEVENTF_KEYUP, 0) time.sleep(0.05) keyboard.wait('`') '''GetPlayer().components.builder:GiveAllRecipes() ''' WithoutShift(65, 13, 192) WithoutShift(20, 71, 20, 69, 84, 20, 80, 20, 76, 65, 89, 69, 82) WithShift(57, 48) WithoutShift(190, 67, 79, 77, 80, 79, 78, 69, 78, 84, 83, 190, 66, 85, 73, 76, 68, 69, 82) WithShift(186, 71, 65, 82, 57, 48) WithoutShift(37, 37, 37, 37, 73, 86, 69, 39, 76, 76, 39, 69, 67, 73, 80, 69, 83, 39, 39, 13, 192) WithoutShift(20, 71, 20, 69, 84, 20, 80, 20, 76, 65, 89, 69, 82) WithShift(57, 48) WithoutShift(190, 67, 79, 77, 80, 79, 78, 69, 78, 84, 83, 190, 72, 69, 65, 76, 84, 72) WithShift(186, 83, 77, 72, 57, 48) WithoutShift(37, 37, 37, 37, 69, 84, 39, 65, 88, 39, 69, 65, 76, 84, 72, 39, 49, 48, 48, 48, 48, 48, 48, 39, 13, 192) WithoutShift(20, 71, 20, 69, 84, 20, 80, 20, 76, 65, 89, 69, 82) WithShift(57, 48) WithoutShift(190, 67, 79, 77, 80, 79, 78, 69, 78, 84, 83, 190, 72, 85, 78, 71, 69, 82) WithShift(186, 83, 77, 57, 48) WithoutShift(37, 37, 37, 69, 84, 39, 65, 88, 39, 49, 48, 48, 48, 39, 13, 192) WithoutShift(20, 71, 20, 69, 84, 20, 80, 20, 76, 65, 89, 69, 82) WithShift(57, 48) WithoutShift(190, 67, 79, 77, 80, 79, 78, 69, 78, 84, 83, 190, 83, 65, 78, 73, 84, 89) WithShift(186, 83, 77, 57, 48) WithoutShift(37, 37, 37, 69, 84, 39, 65, 88, 39, 49, 48, 48, 48, 39, 13, 192) # minimap = TheSim:FindFirstEntityWithTag("minimap") WithoutShift(77, 73, 78, 73, 77, 65, 80, 32, 187, 32, 20, 84, 20, 72, 69, 20, 83, 20, 73, 77) WithShift(186, 57, 222, 222, 48) # :("") WithoutShift(37, 37, 37, 37, 20, 70, 20, 73, 78, 68, 20, 70, 20, 73, 82, 83, 84, 20, 69, 20, 78, 84, 73, 84, 89, 20, 87, 20, 73, 84, 72, 20, 84, 20, 65, 71, 39, 39, 77, 73, 78, 73, 77, 65, 80, 39, 39, 13, 192) # minimap.MiniMap:ShowArea(0,0,0, 10000) WithoutShift(77, 73, 78, 73, 77, 65, 80, 190, 20, 77, 20, 73, 78, 73, 20, 77, 20, 65, 80) WithShift(186, 83, 65, 57, 48) # :("") WithoutShift(37, 37, 37, 72, 79, 87, 39, 82, 69, 65, 39, 48, 188, 48, 188, 48, 188, 32, 49, 48, 48, 48, 48, 39, 13) ``` 通过pyinstaller生成exe文件,执行的时候窗口一闪而过,用cmd终端执行,提示以下信息: ``` Traceback (most recent call last): File "test.py", line 1, in <module> ImportError: DLL load failed while importing win32api: 找不到指定的模块。 [10088] Failed to execute script test ``` 电脑明明装了pywin库的啊,网上各种搜索也没有找到解决办法,希望有大神帮帮看看,不胜感激

pyinstaller打包python程序生成exe,报错 Cannot find existing PyQt5 plugin directories

用pyinstaller打包python程序生成exe,报了个错: Exception: Cannot find existing PyQt5 plugin directories Paths checked: D:/GBAS·ÂÕæƽ̨/PythonGUIBasis/胜利env/闪电b/site-packages/PyQt5/Qt/plugins 网上查都说是缺了个dll文件,但是我在电脑上实在找不到这个文件: https://blog.csdn.net/chang995196962/article/details/84974175 这个文件(pyqt5qmlplugin.dll)应该在哪里找? 或者正确的解决方案。 ps.我是直接用pycharm按照的pyqt5,没有用过anaconda。 也试过用pip重装pyqt5,还是没解决...

pyinstaller打包时“找不到”错误

![图片说明](https://img-ask.csdn.net/upload/202003/25/1585144110_152503.png) 错误找不到

如何解决以下安装pyinstaller时出现的错误?

![图片说明](https://img-ask.csdn.net/upload/202005/02/1588420908_565123.png) 使用python自带pip安装pyinstaller时出现如图错误,希望各位大神帮忙解决,谢谢!

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

ArrayList源码分析(入门篇)

ArrayList源码分析 前言: 写这篇博客的主要原因是,在我上一次参加千牵科技Java实习生面试时,有被面试官问到ArrayList为什么查找的速度较快,插入和删除的速度较慢?当时我回答得不好,很大的一部分原因是因为我没有阅读过ArrayList源码,虽然最后收到Offer了,但我拒绝了,打算寒假学得再深入些再广泛些,下学期开学后再去投递其他更好的公司。为了更加深入理解ArrayList,也为

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

String s = new String(" a ") 到底产生几个对象?

老生常谈的一个梗,到2020了还在争论,你们一天天的,哎哎哎,我不是针对你一个,我是说在座的各位都是人才! 上图红色的这3个箭头,对于通过new产生一个字符串(”宜春”)时,会先去常量池中查找是否已经有了”宜春”对象,如果没有则在常量池中创建一个此字符串对象,然后堆中再创建一个常量池中此”宜春”对象的拷贝对象。 也就是说准确答案是产生了一个或两个对象,如果常量池中原来没有 ”宜春” ,就是两个。...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

玩转springboot启动banner定义所得

最近接手了一个springboot项目,不是不熟悉这个框架,启动时打印的信息吸引了我。 这不是我熟悉的常用springboot的打印信息啊,我打开自己的项目: 还真是的,不用默认的感觉也挺高大上的。一时兴起,就去研究了一下源代码,还正是有些收获,稍后我会总结一下。正常情况下做为一个老程序员,是不会对这种小儿科感兴趣的,不就是一个控制台打印嘛。哈哈! 于是出于最初的好奇,研究了项目的源代码。看到

带了6个月的徒弟当了面试官,而身为高级工程师的我天天修Bug......

即将毕业的应届毕业生一枚,现在只拿到了两家offer,但最近听到一些消息,其中一个offer,我这个组据说客户很少,很有可能整组被裁掉。 想问大家: 如果我刚入职这个组就被裁了怎么办呢? 大家都是什么时候知道自己要被裁了的? 面试软技能指导: BQ/Project/Resume 试听内容: 除了刷题,还有哪些技能是拿到offer不可或缺的要素 如何提升面试软实力:简历, 行为面试,沟通能...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

你打算用Java 8一辈子都不打算升级到Java 14,真香

我们程序员应该抱着尝鲜、猎奇的心态,否则就容易固步自封,技术停滞不前。

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

立即提问
相关内容推荐