在哪里可以获取晦涩的DLL,以便py2exe可以编译? [英] Where can I get obscure DLL so py2exe will compile?
问题描述
我正在运行py2exe将相当大(约20k行)的python文件转换为可执行文件。这是一个较旧的程序,是用python 2.7(32位)编写的,因此不能很好地转化为一个最低限度的示例。在运行py2exe时,我遇到以下错误:
I am running py2exe to convert a rather large (~20k lines) python file into an executable. It's an older program and is written in python 2.7, 32 bit, so it does not translate well to a minimum working example. On running py2exe I encounter the following error:
error: [Errno 2] No such file or directory:
'libopenblas.UWVN3XTD2LSS7SFIFK6TIQ5GONFDBJKU.gfortran-win32.dll'
此dll在Python27 / DLLs文件夹中将解决这个问题,但在搜寻google的深度之后,我一直无法取得任何进展。我的问题:哪里可以下载该dll或包含该dll的库?
Having this dll in the Python27/DLLs folder will solve this issue, but after scouring the depths of google I have been unable to make any progress. My question: where can one download this dll, or a library which would contain this dll?
推荐答案
问题已解决。如果您运行的是32位python和numpy,则应该可以在以下位置找到该特定的DLL:
Problem solved. If you're running 32 bit python and numpy, you should be able to find this specific DLL at:
C:\Python27\Lib\site-packages\numpy\.libs
将其复制并粘贴到:
C:\Python27\DLLs
并正常运行py2exe。
And run py2exe as normal.
这篇关于在哪里可以获取晦涩的DLL,以便py2exe可以编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!