————————————————————12.28更新———————————————————— 现在重新装了pycrypto,但是丢失的文件还是丢失状态(可能他本来就没有这个文件,但是我从它的安装包中找到了那个文件),之后我把安装包中的文件放到了指定位置,但是程序打包时貌似还是找不到,还是报原来的错误,还在寻找解决办法
原问题———————————————————————— 以下为报错信息: Traceback (most recent call last): File "main.py", line 15, in File "c:python27libsite-packagesPyInstaller-3.4.dev0+ab8fd9753-py2.7.eggPyInstallerloaderpyimod03_importers.py", line 396, in load_module
exec(bytecode, module.__dict__)
File "login.py", line 10, in File "c:python27libsite-packagesPyInstaller-3.4.dev0+ab8fd9753-py2.7.eggPyInstallerloaderpyimod03_importers.py", line 396, in load_module
exec(bytecode, module.__dict__)
File "lostcode.py", line 14, in File "c:python27libsite-packagesPyInstaller-3.4.dev0+ab8fd9753-py2.7.eggPyInstallerloaderpyimod03_importers.py", line 396, in load_module
exec(bytecode, module.__dict__)
File "send_sms.py", line 5, in File "c:python27libsite-packagesPyInstaller-3.4.dev0+ab8fd9753-py2.7.eggPyInstallerloaderpyimod03_importers.py", line 396, in load_module
exec(bytecode, module.__dict__)
File "libsite-packagesaliyun_python_sdk_core-2.4.4-py2.7.eggaliyunsdkcoreclient.py", line 40, in File "c:python27libsite-packagesPyInstaller-3.4.dev0+ab8fd9753-py2.7.eggPyInstallerloaderpyimod03_importers.py", line 396, in load_module
exec(bytecode, module.__dict__)
File "libsite-packagesaliyun_python_sdk_core-2.4.4-py2.7.eggaliyunsdkcoreauthSigner.py", line 32, in File "c:python27libsite-packagesPyInstaller-3.4.dev0+ab8fd9753-py2.7.eggPyInstallerloaderpyimod03_importers.py", line 396, in load_module
exec(bytecode, module.__dict__)
File "libsite-packagesaliyun_python_sdk_core-2.4.4-py2.7.eggaliyunsdkcoreauthalgorithmsha_hmac256.py", line 24, in File "c:python27libsite-packagesPyInstaller-3.4.dev0+ab8fd9753-py2.7.eggPyInstallerloaderpyimod03_importers.py", line 396, in load_module
exec(bytecode, module.__dict__)
File "buildbdist.win32eggCryptoPublicKeyRSA.py", line 78, in File "c:python27libsite-packagesPyInstaller-3.4.dev0+ab8fd9753-py2.7.eggPyInstallerloaderpyimod03_importers.py", line 396, in load_module
exec(bytecode, module.__dict__)
File "buildbdist.win32eggCryptoRandom__init__.py", line 28, in File "c:python27libsite-packagesPyInstaller-3.4.dev0+ab8fd9753-py2.7.eggPyInstallerloaderpyimod03_importers.py", line 396, in load_module
exec(bytecode, module.__dict__)
File "buildbdist.win32eggCryptoRandomOSRNG__init__.py", line 34, in File "c:python27libsite-packagesPyInstaller-3.4.dev0+ab8fd9753-py2.7.eggPyInstallerloaderpyimod03_importers.py", line 396, in load_module
exec(bytecode, module.__dict__)
File "buildbdist.win32eggCryptoRandomOSRNGnt.py", line 28, in File "c:python27libsite-packagesPyInstaller-3.4.dev0+ab8fd9753-py2.7.eggPyInstallerloaderpyimod03_importers.py", line 396, in load_module
exec(bytecode, module.__dict__)
File "buildbdist.win32eggCryptoRandomOSRNGwinrandom.py", line 7, in File "buildbdist.win32eggCryptoRandomOSRNGwinrandom.py", line 6, in bootstrap ImportError: DLL load failed: 找不到指定的模块。 [30668] Failed to execute script main
我使用的的是Python2.7,使用pyinstaller打包的,没打包的程序运行是没有问题的,打包之后出来的exe文件就会报这样的错误,求大神解答
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。