我把matplotlib包含在我的程序中,我在google上搜索了关于numpy-atlas.dll的信息,我似乎是地球上唯一有这个问题的人。
from setuptools import setup
import py2exe
setup(console=['EulerMethod.py'])
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'
我遇到了同样的问题。经过一些测试后,将
numpy.core
目录附加到sys.path
似乎可以工作。听起来py2exe找不到dll。以下脚本将使py2exe安静:
(第页)
您仍然需要确保dll位于用户的计算机上。我相信numpy-atlas.dll是matplot依赖项之一。
如果其他一切都失败了,也可以考虑使用PyInstaller。
这就是我的工作。 我找到了dll:C:\Python27\Lib\site packages\numpy\core\numpy-atlas.dll 并将其复制到具有setup.py的同一文件夹中
相关问题 更多 >
编程相关推荐