Py2Exe,[错误2]没有这样的文件或目录:'numpy-atlas.dll' [英] Py2Exe, [Errno 2] No such file or directory: 'numpy-atlas.dll'
本文介绍了Py2Exe,[错误2]没有这样的文件或目录:'numpy-atlas.dll'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在程序中包含了matplotlib,我在google上搜索了numpy_atlas.dll,而且我似乎是地球上唯一遇到此问题的人.
I have included matplotlib in my program, I searched about numpy_atlas.dll on google and I seem to be the only one on Earth with this problem.
from setuptools import setup
import py2exe
setup(console=['EulerMethod.py'])
运行Py2Exe会导致错误
C:\(..obmitted..)>python setup.py py2exe
running py2exe
*** searching for required modules ***
*** parsing results ***
......
...obmitted...
......
*** finding dlls needed ***
error: [Errno 2] No such file or directory: 'numpy-atlas.dll'
推荐答案
像py2exe之类的声音找不到dll.以下脚本将使py2exe安静:
Sounds like py2exe can't find dll. Following script will make py2exe quiet:
distutils.core.setup(
options = {
"py2exe": {
"dll_excludes": ["MSVCP90.dll"]
}
},
...
)
您仍然需要确保dll在用户计算机上.我相信numpy-atlas.dll是matplot依赖项之一.
You still need to make sure that dll is on the user's machine. I believe numpy-atlas.dll is one of matplot dependencies.
如果其他所有方法都失败,也可以考虑使用PyInstaller.
Also consider using PyInstaller if everything else fails.
这篇关于Py2Exe,[错误2]没有这样的文件或目录:'numpy-atlas.dll'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文