問(wèn)題如標(biāo)題:
首先,ucrtbase.dll是一個(gè)windows的dll的文件,和Pycharm沒(méi)有太大關(guān)系,是一個(gè)windows操作系統(tǒng)和C++的一個(gè)交互的dll的動(dòng)態(tài)庫(kù),顯然,Pycharm調(diào)用他的接口API以至于,可以讓我們要打包的EXE文件運(yùn)行起來(lái)。
What Is Ucrtbase.dll
The ucrtbased dll file is a software component of Microsoft Visual C++ that is an IDE developed by Microsoft. It is a legitimate Windows file and dynamic link library file that doesn’t cause any threat to your computer. That is to say, if you install an application or program that requires the Microsoft Visual C++ packages, you may find the ucrtbase.dll file inside the installation folder.
How to determine if ucrtbase dll is safe for the Windows system? Usually, the file is located in the C:\Windows\System32 directory and the known file size on Windows is about 1,181,208 bytes. However, if the ucrtbase dll file is not in its original location, then we recommend you perform a virus scan to check its safety.
Since ucrtbased dll is a core Windows system file that’s needed by many applications, games, or web browser extensions, you may encounter application/game crashing errors once the file gets deleted, misplaced, or corrupted. Here are the most commonly occurring errors related to ucrtbase dll:
This application failed to start because ucrtbase.dll was not found. Re-installing the application may fix this problem.
The code execution cannot proceed because ucrtbased.dll was not found. Reinstalling the program may fix this problem.
The module ucrtbase.dll was loaded but the entry-point DllRegisterServer was not found. Make sure the ucrtbase.dll is a valid DLL or OCX file and then try again.
dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media.
Error loading ucrtbased.dll. The specified module could not be found.
環(huán)境:
解決辦法1:
由于360殺毒軟件的問(wèn)題,把停掉一小時(shí),重新生成試試看:
解決辦法2:
有可能在你的項(xiàng)目文件夾里面,你真的沒(méi)有ucrtbase.dll
一般在
C:\Windows\System32
下可以找到這個(gè)文件:然后,你直接copy這個(gè)文件到你要打包的項(xiàng)目目錄里面就好了,具體是要copy到哪個(gè)目錄,錯(cuò)誤提示里面會(huì)有比較清晰的報(bào)錯(cuò)說(shuō)明。
比如,我的報(bào)錯(cuò)信息:
PermissionError: [Errno 13] Permission denied: 'D:\\Sw_Prj\\application\\SW_Module\\dist\\DemoSoftware\\ucrtbase.dll'
生成參數(shù)設(shè)定:
pyinstaller -w -F XXX.py
-w:表示希望在生成的.exe程序運(yùn)行過(guò)程中,不要出現(xiàn)命令行窗口,但是,這樣調(diào)試的信息也就沒(méi)有了
-F:程序全部打包在一起生成的一個(gè).exe文件
‘
生成文件的地址:
在項(xiàng)目文件夾,生成的dist文件夾里面,有一個(gè)最新日期的exe文件就是你生成的文件。
出現(xiàn)的問(wèn)題:
EXE文件生成了閃退
這個(gè)主要的問(wèn)題,親測(cè)為庫(kù)文件的地址不對(duì),如果正確的編譯應(yīng)沒(méi)有問(wèn)題文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-460297.html
參考:
https://www.partitionwizard.com/disk-recovery/ucrtbase-dll.html
https://dimensionspacex.blog.csdn.net/article/details/123102395
Python如何生成exe文件?用Pycharm一步一步帶著你學(xué)文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-460297.html
到了這里,關(guān)于pyinstaller打包提示PermissionError: [Errno 13] Permission denied....\\ucrtbase.dll 的解決辦法:@Windwos10 64位的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!