开发者社区> 问答> 正文

使用了阿里云的短信服务开发了python的程序,但是在打包为exe的时候出现了问题

————————————————————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文件就会报这样的错误,求大神解答

展开
收起
morlory 2017-12-28 01:13:49 2927 0
1 条回答
写回答
取消 提交回答
  • 一个热爱科技,热爱生活的阳光男孩

    看一下帮助文档

    2019-07-17 21:50:50
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里云云原生 Serverless 技术实践营 PPT 演讲 立即下载
阿里云产品十月刊 立即下载
基于阿里云构建博学谷平台实时湖仓 立即下载