求助: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)

wen0429
wen0429 回复weiran_: 多谢啦
8 个月之前 回复
wen0429
wen0429 回复weiran_: 试了 没有成功
8 个月之前 回复
wen0429
wen0429 回复weixin_41150831: 没有解决问题
8 个月之前 回复
weiran_
weiran_ 把pyqt5的版本降成5.8.2
8 个月之前 回复
weixin_41150831
weixin_41150831 老哥,解决没有
9 个月之前 回复

1个回答

我升级了pyinstaller 成功解决了问题

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Python: 使用pyinstaller打包exe时报错Cannot find PyQt5 plugin directories
Python: 使用pyinstaller打包exe时报错Cannot find PyQt5 plugin directories 环境win7,python3.6,pyinstaller3.3,在用pyinstaller打包的时候会报错。
pyinstaller打包.py文件出错,求解
pyinstaller打包.py文件出错,求解 ``` Traceback (most recent call last): File "c:\users\86134\appdata\local\programs\python\python38-32\lib\runpy.py", line 192, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\86134\appdata\local\programs\python\python38-32\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\86134\AppData\Local\Programs\Python\Python38-32\Scripts\pyinstaller.exe\__main__.py", line 7, in <module> File "c:\users\86134\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\__main__.py", line 111, in run run_build(pyi_config, spec_file, **vars(args)) File "c:\users\86134\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\__main__.py", line 63, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "c:\users\86134\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\build_main.py", line 844, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "c:\users\86134\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\build_main.py", line 791, in build exec(code, spec_namespace) File "C:\Users\86134\Desktop\qw.spec", line 18, in <module> pyz = PYZ(a.pure, a.zipped_data, File "c:\users\86134\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\api.py", line 98, in __init__ self.__postinit__() File "c:\users\86134\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\datastruct.py", line 158, in __postinit__ self.assemble() File "c:\users\86134\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\api.py", line 128, in assemble self.code_dict = { File "c:\users\86134\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\api.py", line 129, in <dictcomp> key: strip_paths_in_code(code) File "c:\users\86134\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\utils.py", line 652, in strip_paths_in_code consts = tuple( File "c:\users\86134\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\utils.py", line 653, in <genexpr> strip_paths_in_code(const_co, new_filename) File "c:\users\86134\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\utils.py", line 660, in strip_paths_in_code return code_func(co.co_argcount, co.co_kwonlyargcount, co.co_nlocals, co.co_stacksize, TypeError: an integer is required (got type bytes) ```
python3.8用pyinstaller3.5导不出exe提示TypeError: an integer is required (got type bytes)
我开始以为是我代码出问题, 后来发先即使我的代码是 print ("Hello World!") 都会出现相同的问题 import requests url="https://ar.**d.cn/users/20000" headers = {"Authorization": "Basic NDM1NzY1OTU6ckgyNzdadXpaZi96VUh4b1g3bVZNQkpNMmtUZm5XUjF2ZEdwNWhlVDlDRVlzMjMvV2VBeUJaQWtyR0h2NHcvb1FTTFJjeWNxc1h******UlsS0ZpVEh5TVM5WW96cjR1SURoNkhqSFhLRkNvUWMyZ0kyNUNZTzRXYnM5aUFKRklEMjJXM3lGOE5MeklTYnF0b2g2SXB5QWo0b2FvOUR6KzRHYTlwRGNjamw2S2k3Umw2SUdKZi9Od2ZXSkFsRmJOUnliRzh3T0tZNFEySGpkbHFTSnIxc0pZa0h3TEY4enE4OEt1U3V4TzJzU29j"} r = requests.get(url, headers=headers) print (r.json()) 上面是我之前的代码,测试运行都是没问题的,但是打包exe就出错了 ![图片说明](https://img-ask.csdn.net/upload/201911/07/1573062806_777820.jpg)
python : pyinstaller无法使用,怎么解决?
pyinstaller安装后无法使用 ,如图 ![图片说明](https://img-ask.csdn.net/upload/201909/16/1568631698_707405.png) 显示需要安装pywin32-ctypes,我照做了 ![图片说明](https://img-ask.csdn.net/upload/201909/16/1568632009_854742.png) 结果再次运行时 ![图片说明](https://img-ask.csdn.net/upload/201909/16/1568632036_992412.png) 还是和以前一样,求大佬解答 补充:python3.7
pyinstaller打包selenium出错,exe文件也没有生成?求解?谢谢!
``` 97 INFO: PyInstaller: 3.5 97 INFO: Python: 3.7.4 100 INFO: Platform: Windows-10-10.0.18362-SP0 102 INFO: wrote C:\Users\WHL\Desktop\nike\own\nike.spec 'upx' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 125 INFO: UPX is not available. 127 INFO: Extending PYTHONPATH with paths ['C:\\Users\\WHL\\Desktop\\nike\\own', 'C:\\Users\\WHL\\Desktop\\nike\\own'] 127 INFO: checking Analysis 129 INFO: Building Analysis because Analysis-00.toc is non existent 130 INFO: Initializing module dependency graph... 136 INFO: Initializing module graph hooks... 138 INFO: Analyzing base_library.zip ... 3393 INFO: running Analysis Analysis-00.toc 3396 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable required by c:\users\whl\appdata\local\programs\python\python37\python.exe 3764 INFO: Caching module hooks... 3771 INFO: Analyzing C:\Users\WHL\Desktop\nike\own\nike.py 4416 INFO: Processing pre-safe import module hook urllib3.packages.six.moves pre-safe-import-module hook failed, needs fixing. ```
python 使用pyinstaller 将.py转成.exe的一些问题
环境:python37+win10+pyinstaller3.1.1 生成.exe文件后,在build文件夹中产生了一个warn.txr的文件: 如图: ![图片说明](https://img-ask.csdn.net/upload/201806/05/1528176467_376155.png) 显示missing module name .... 我程序引用的模块都在python文件夹下边,而不在项目文件夹下,如图: ![图片说明](https://img-ask.csdn.net/upload/201806/05/1528176593_396836.png) 请问应该怎么操作,才能把warn.txt文件内的模块引用到?
pyinstaller提示warning缺少dll?
``` 1669154 WARNING: lib not found: impi.dll dependency of c:\users\jenny\anaconda3\Library\bin\mkl_blacs_intelmpi_ilp64.dll 1670013 WARNING: lib not found: impi.dll dependency of c:\users\jenny\anaconda3\Library\bin\mkl_blacs_intelmpi_lp64.dll 1671017 WARNING: lib not found: tbb.dll dependency of c:\users\jenny\anaconda3\Library\bin\mkl_tbb_thread.dll 1672540 WARNING: lib not found: pgf90.dll dependency of c:\users\jenny\anaconda3\Library\bin\mkl_pgi_thread.dll 1673283 WARNING: lib not found: pgf90rtl.dll dependency of c:\users\jenny\anaconda3\Library\bin\mkl_pgi_thread.dll 1674028 WARNING: lib not found: pgc14.dll dependency of c:\users\jenny\anaconda3\Library\bin\mkl_pgi_thread.dll 1675810 WARNING: lib not found: mpich2mpi.dll dependency of c:\users\jenny\anaconda3\Library\bin\mkl_blacs_mpich2_lp64.dll 1676819 WARNING: lib not found: mpich2mpi.dll dependency of c:\users\jenny\anaconda3\Library\bin\mkl_blacs_mpich2_ilp64.dll 1679357 WARNING: lib not found: msmpi.dll dependency of c:\users\jenny\anaconda3\Library\bin\mkl_blacs_msmpi_ilp64.dll 1681005 WARNING: lib not found: msmpi.dll dependency of c:\users\jenny\anaconda3\Library\bin\mkl_blacs_msmpi_lp64.dll ``` 试图搜索这些文件也没有找到
Python: 使用pyinstaller打包exe时报错JSONDecodeError: Expecting value: line 1 column 1 (char 0)
环境win7,python3.6,pyinstaller3.5 and 3.4,在用pyinstaller打包的时候会报错。 **_raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)**_
Python: 使用pyinstaller打包exe时报错Expecting value: line 1 column 1 (char 0)
环境win7,python3.6,pyinstaller3.5 and 3.4,在用pyinstaller打包的时候会报错。 # **_raise JSONDecodeError("Expecting value", s, err.value) from None # json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)**_ ```
pyinstaller打包py成exe后音乐文件播放异常,pygame.error
已解决 虽然不知道什么原因 用pyinstaller打包以后pygame不支持播放mp3和ogg文件 我把音乐文件转换成wav格式就成功了 所以mp3和ogg在pycharm里可以正常使用,不过如果要转成exe的话还得先把音乐文件统一转化成wav才行 问题描述: ``` if self.direct == 1: pygame.init() music = r"music\ai.mp3" pygame.mixer.music.load(music) pygame.mixer.music.play() ``` 一个十分普通的语句,在pycharm里可以顺利运行,但使用pyinstaller完成打包,并把music文件夹复制到和exe文件同目录下后却不能正常播放music里面的音乐文件,出现如下报错:![图片说明](https://img-ask.csdn.net/upload/202001/11/1578673075_740305.png) 整条路径没有中文名,歌曲文件名为ai.mp3,也没有中文名; 打包语句:pyinstaller -D loadui_new.py 目前已经试过网上的冻结路径法、spec打包(使用--add-data添加文件)法,报错没有变化。 初学python,还请各位前辈能教一下,感激不尽
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封装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这个包?到底该怎么找到问题呢?
ubuntu下pyinstaller打包.py为ubuntu软件,在命令下运行报错,该怎么解决?
运行程序命令为下面第1行: janlee@janlee-Lenovo-Product:~/mycode/myseaice_test/dist$ ./myseaice_main_test 报错内容为(我的打包的主程序myseaice_main_test.py): Traceback (most recent call last): File "myseaice_main_test.py", line 10, in <module> File "/usr/local/lib/python2.7/dist-packages/PyInstaller/loader/pyimod03_importers.py", line 389, in load_module exec(bytecode, module.__dict__) File "dist-packages/skimage/io/__init__.py", line 76, in <module> File "dist-packages/skimage/io/__init__.py", line 56, in _update_doc ValueError: max() arg is an empty sequence Failed to execute script myseaice_main_test
pyinstaller 打包文件时出现pre-safe-import-module hook failed, needs fixing.的错误
pyinstaller 打包文件时出现错误。 ``` 3113 INFO: Processing pre-safe import module hook urllib3.packages.six.moves pre-safe-import-module hook failed, needs fixing. ``` 无法生成exe文件 版本:python3.7 本人初学python,小白一个, 求教大佬是怎么回事,如何解决。。
pyinstaller打包成EXE以后提示Failed to execute script?
使用此命令:pyinstaller -F -w *.py打包成的EXE无法打开,打开就提示 ![图片说明](https://img-ask.csdn.net/upload/201811/27/1543280438_272810.png) 但如果是:pyinstaller -F *.py ,打开就可以正常运行 请教一下各位大神这是什么原因? pyth是3.7版本 PyCharm是2018.3版本 pyinstaller是3.4版本 我看pyinstaller是支持到3.7的,那到底是什么原因呢? 程序源码在PyCharm跑没问题,打包成带黑色控制台窗口的exe运行也没有问题。 代码如下: def isLeapYear(y): return (y%400==0 or (y%4==0 and y%100!=0)) DofM=[0,31,28,31,30,31,30,31,31,30,31,30] res=0 year=int(input('Year:')) month=int(input('Month:')) day=int(input('day:')) if isLeapYear(year): DofM[2]+=1 for i in range(month): res+=DofM[i] print(res+day) ![图片说明](https://img-ask.csdn.net/upload/201811/27/1543280460_250250.png)
用pyinstaller打包程序时(程序中有在cmd调用exe的行为)添加-w,界面卡住没反应?
1. 主程序用含有命令行调用exe的代码,pyinstaller打包。打包命令添加-w时发现运行程序时界面会卡住不动,不添加就可以正常运行,很不解。 调用exe代码如下: D:\\Converter\\kernel_time_convert.exe D:\\Log\\mobilelog\\APLog_2019_0621_164712__8\\kernel_log_6__2019_0621_173139 意思是用这个exe工具来转换kernellog的时间格式 2. 打包命令为pyinstaller test.py -F -w 3. 为啥不加-w就可以正常运行了?
python安装pyinstaller报错
``` ERROR: Command errored out with exit status 1: command: 'c:\users\巩子昆\appdata\local\programs\python\python37-32\python.exe' 'c:\users\巩子昆\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\巩子昆\AppData\Local\Temp\tmp5hj8yy69' cwd: C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller Complete output (36 lines): running dist_info creating C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info writing C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\PKG-INFO writing dependency_links to C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\dependency_links.txt writing entry points to C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\entry_points.txt writing requirements to C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\requires.txt writing top-level names to C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\top_level.txt writing manifest file 'C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt' reading manifest file 'C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' Error in sitecustomize; set PYTHONVERBOSE for traceback: SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xb9 in position 0: invalid start byte (sitecustomize.py, line 7) no previously-included directories found matching 'bootloader\build' no previously-included directories found matching 'bootloader\.waf-*' no previously-included directories found matching 'bootloader\.waf3-*' no previously-included directories found matching 'bootloader\waf-*' no previously-included directories found matching 'bootloader\waf3-*' no previously-included directories found matching 'bootloader\_sdks' no previously-included directories found matching 'bootloader\.vagrant' warning: no previously-included files found matching 'bootloader\.lock-waf*' no previously-included directories found matching 'doc\source' no previously-included directories found matching 'doc\_build' warning: no previously-included files matching '*.tmp' found under directory 'doc' warning: no files found matching 'news\_template.rst' no previously-included directories found matching 'news' no previously-included directories found matching 'old' no previously-included directories found matching 'scripts' no previously-included directories found matching 'tests\scripts' no previously-included directories found matching '.github' warning: no previously-included files found matching '.*' warning: no previously-included files found matching '*.yml' warning: no previously-included files found matching '*~' warning: no previously-included files found matching '.directory' writing manifest file 'C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.egg-info\SOURCES.txt' creating 'C:\Users\巩子昆\AppData\Local\Temp\pip-install-_y8nunuv\pyinstaller\pip-wheel-metadata\PyInstaller.dist-info' error: invalid command 'bdist_wheel' ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\users\巩子昆\appdata\local\programs\python\python37-32\python.exe' 'c:\users\巩子昆\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\巩子昆\AppData\Local\Temp\tmp5hj8yy69' Check the logs for full command output. ``` 饶了我吧 我就一小白
为什么在pyinstaller打包运行正常的.py文件为exe文件后,exe文件运行报错?
环境: win7, 32位,Python2.7, pywinauto 问题: 使用Pyinstaller打包.py文件为exe文件,exe文件运行报错:SendInput() inserted only 0 out of 2 keyboard events. 但是.py文件运行正常。 代码: exe文件报错的代码在date.TypeKeys(timestr_1)这里报错,附上部分代码: #调用加密程序encrypt.exe加密已导出的库文件 file_encrypt_0 = r'\加密(IPS&&IDS)\EncryptDB.exe' file_encrypt_1 = PathStr + unicode(file_encrypt_0, 'utf8') app_encrypt = Application().start(file_encrypt_1) dlg_encrypt = app_encrypt.window_(class_name="#32770") date = dlg_encrypt.window_(title_re='201', class_name="SysDateTimePick32") date.TypeKeys(timestr_1)
python3中使用pyinstaller 将文件转换成.exe文件 执行后报错问题
环境:win10,python3.7,pyinstaller3.3.1.py文件转换前,可以正常运行没有问题,使用pyintaller转换成.exe文件后,信息中显示successfully,但是执行.exe文件 就会报错。大概的意思是找不到系统编辑器,见下图:还请大神帮帮忙啊~~~ ![图片说明](https://img-ask.csdn.net/upload/201806/06/1528246784_474530.png) 打包的信息: ![图片说明](https://img-ask.csdn.net/upload/201806/06/1528247078_850486.png) ![图片说明](https://img-ask.csdn.net/upload/201806/06/1528247066_42390.png)
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
使用 Docker 部署 Spring Boot 项目
Docker 技术发展为微服务落地提供了更加便利的环境,使用 Docker 部署 Spring Boot 其实非常简单,这篇文章我们就来简单学习下。首先构建一个简单的 S...
英特尔不为人知的 B 面
从 PC 时代至今,众人只知在 CPU、GPU、XPU、制程、工艺等战场中,英特尔在与同行硬件芯片制造商们的竞争中杀出重围,且在不断的成长进化中,成为全球知名的半导体公司。殊不知,在「刚硬」的背后,英特尔「柔性」的软件早已经做到了全方位的支持与支撑,并持续发挥独特的生态价值,推动产业合作共赢。 而对于这一不知人知的 B 面,很多人将其称之为英特尔隐形的翅膀,虽低调,但是影响力却不容小觑。 那么,在...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
刷了几千道算法题,这些我私藏的刷题网站都在这里了!
遥想当年,机缘巧合入了 ACM 的坑,周边巨擘林立,从此过上了"天天被虐似死狗"的生活… 然而我是谁,我可是死狗中的战斗鸡,智力不够那刷题来凑,开始了夜以继日哼哧哼哧刷题的日子,从此"读题与提交齐飞, AC 与 WA 一色 ",我惊喜的发现被题虐既刺激又有快感,那一刻我泪流满面。这么好的事儿作为一个正直的人绝不能自己独享,经过激烈的颅内斗争,我决定把我私藏的十几个 T 的,阿不,十几个刷题网...
白话阿里巴巴Java开发手册高级篇
不久前,阿里巴巴发布了《阿里巴巴Java开发手册》,总结了阿里巴巴内部实际项目开发过程中开发人员应该遵守的研发流程规范,这些流程规范在一定程度上能够保证最终的项目交付质量,通过在时间中总结模式,并推广给广大开发人员,来避免研发人员在实践中容易犯的错误,确保最终在大规模协作的项目中达成既定目标。 无独有偶,笔者去年在公司里负责升级和制定研发流程、设计模板、设计标准、代码标准等规范,并在实际工作中进行...
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
redis分布式锁,面试官请随便问,我都会
文章有点长并且绕,先来个图片缓冲下! 前言 现在的业务场景越来越复杂,使用的架构也就越来越复杂,分布式、高并发已经是业务要求的常态。像腾讯系的不少服务,还有CDN优化、异地多备份等处理。 说到分布式,就必然涉及到分布式锁的概念,如何保证不同机器不同线程的分布式锁同步呢? 实现要点 互斥性,同一时刻,智能有一个客户端持有锁。 防止死锁发生,如果持有锁的客户端崩溃没有主动释放锁,也要保证锁可以正常释...
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
Nginx 原理和架构
Nginx 是一个免费的,开源的,高性能的 HTTP 服务器和反向代理,以及 IMAP / POP3 代理服务器。Nginx 以其高性能,稳定性,丰富的功能,简单的配置和低资源消耗而闻名。 Nginx 的整体架构 Nginx 里有一个 master 进程和多个 worker 进程。master 进程并不处理网络请求,主要负责调度工作进程:加载配置、启动工作进程及非停升级。worker 进程负责处...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
Java世界最常用的工具类库
Apache Commons Apache Commons有很多子项目 Google Guava 参考博客
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员...
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC...
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下...
为什么要学数据结构?
一、前言 在可视化化程序设计的今天,借助于集成开发环境可以很快地生成程序,程序设计不再是计算机专业人员的专利。很多人认为,只要掌握几种开发工具就可以成为编程高手,其实,这是一种误解。要想成为一个专业的开发人员,至少需要以下三个条件: 1) 能够熟练地选择和设计各种数据结构和算法 2) 至少要能够熟练地掌握一门程序设计语言 3) 熟知所涉及的相关应用领域的知识 其中,后两个条件比较容易实现,而第一个...
Android 9.0 init 启动流程
阅读五分钟,每日十点,和您一起终身学习,这里是程序员Android本篇文章主要介绍Android开发中的部分知识点,通过阅读本篇文章,您将收获以下内容:一、启动流程概述一、 启动流程概述Android启动流程跟Linux启动类似,大致分为如下五个阶段。1.开机上电,加载固化的ROM。2.加载BootLoader,拉起Android OS。3.加载Uboot,初始外设,引导Kernel启动等。...
相关热词 c#中dns类 c#合并的excel c# implicit c#怎么保留3个小数点 c# 串口通信、 网络调试助手c# c# 泛型比较大小 c#解压分卷问题 c#启动居中 c# 逻辑或运算符
立即提问