最近,公司在包装py文件时使用了numpy,因此包装过程打了一三折,出现了各种问题。 主要是缺少dll文件。 公司使用的环境如下。
打包平台: Win32系统、
Python环境: Python2.7、
封装方式: Py2exe,构建过程中报的错误:
hereishowtoproceed : if you’reworkingwithanumpygitrepository,trygitclean-xdf (removesallfilesnotunder
版本控制(andrebuildnumpy.ifyouaresimplytryingtouse
thenumpyversionthatyouhaveinstalled 3360 yourinstallationis
broken-pleasereinstallnumpy.ifyouhavealreadyreinstalledand
that did not fix the problem,then : checkthatyouareusingthe
pythonyouexpect (you’reusing
c :usersyl Zhengdownloadswind.bdg.adtech.spider-windows-r-any-1.0.4.15895WCB _ adtssted
andthatyouhavenodirectoriesinyourpathorpythonpaththatcan
interferewiththepythonandnumpyversionsyou’retrying to use.if (1) looks fine,you can open a new issue at
3359 github.com/numpy/numpy/issues.pleaseincludedetailson :
how you installed Python
how you安装编号
your操作系统
whetherornotyouhavemultipleversionsofpythoninstalled
if you built from source,yourcompilerversionsandideallyabuildlog
note : thiserrorhasmanypossiblecauses,sopleasedon’tcom menton
anexistingissueaboutthis-openanewoneinstead.originalerrorwas 3360 memoryloadlibraryfailedloading
numpycore _ multi array _ umath.pyd
——————————————————————————
* * searchingforrequiredmodules * * *
* * *持续结果* * *
* * * findingdllsneeded * * * error : [ errno2] nosuchfileordirectory :‘numpy-atlas.dll’——3354333——3333333333333333333333333333333333333
importerror : dllloadfailed : % 1不是有效的win32 APP应用程序。 ——————————————————————————
缺失: libopenblas.ipbc 74 c 7k ur V7 cb2 PKT 5z5 fnr 3si b v4 j.gfortran-win _ amd64.dll中缺少其他dll库,这些dll库已成功构建
所有这些问题基本上都可以归结为numpy的官方版本问题。解决方法:
访问: https://www.lfd.UCI.edu/~ Goh lke/python libs/# numpy
下载numpy-1.16.6 vanilla。 要应对电脑的位数,我是32位。 下载:
然后,可以通过使用pip本地安装并打包来解决问题。