问题如标题:
首先,ucrtbase.dll是一个windows的dll的文件,和Pycharm没有太大关系,是一个windows操作系统和C++的一个交互的dll的动态库,显然,Pycharm调用他的接口API以至于,可以让我们要打包的EXE文件运行起来。
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.
环境:
解决办法1:
由于360杀毒软件的问题,把停掉一小时,重新生成试试看:
解决办法2:
有可能在你的项目文件夹里面,你真的没有ucrtbase.dll
一般在
C:\Windows\System32
下可以找到这个文件:然后,你直接copy这个文件到你要打包的项目目录里面就好了,具体是要copy到哪个目录,错误提示里面会有比较清晰的报错说明。
比如,我的报错信息:
PermissionError: [Errno 13] Permission denied: 'D:\\Sw_Prj\\application\\SW_Module\\dist\\DemoSoftware\\ucrtbase.dll'
生成参数设定:
pyinstaller -w -F XXX.py
-w:表示希望在生成的.exe程序运行过程中,不要出现命令行窗口,但是,这样调试的信息也就没有了
-F:程序全部打包在一起生成的一个.exe文件
‘
生成文件的地址:
在项目文件夹,生成的dist文件夹里面,有一个最新日期的exe文件就是你生成的文件。
出现的问题:
EXE文件生成了闪退
这个主要的问题,亲测为库文件的地址不对,如果正确的编译应没有问题文章来源:https://www.toymoban.com/news/detail-460297.html
参考:
https://www.partitionwizard.com/disk-recovery/ucrtbase-dll.html
https://dimensionspacex.blog.csdn.net/article/details/123102395
Python如何生成exe文件?用Pycharm一步一步带着你学文章来源地址https://www.toymoban.com/news/detail-460297.html
到了这里,关于pyinstaller打包提示PermissionError: [Errno 13] Permission denied....\\ucrtbase.dll 的解决办法:@Windwos10 64位的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!