Python 当我尝试使用pyinstaller打包pycrypto时发生错误

Python 当我尝试使用pyinstaller打包pycrypto时发生错误,python,pyinstaller,pycrypto,Python,Pyinstaller,Pycrypto,我使用pyinstaller的最新版本,Python2.7.5,OSX 当我尝试打包此代码时: import Crypto.Cipher._AES as AES import Crypto.Hash._SHA256 as SHA256 if __name__ == '__main__': c = AES.new('1234567890123456') cipher = c.encrypt('blabblabblabblab') print(cipher.encode(

我使用pyinstaller的最新版本,Python2.7.5,OSX

当我尝试打包此代码时:

import  Crypto.Cipher._AES as AES
import Crypto.Hash._SHA256 as SHA256 
if __name__ == '__main__':
    c = AES.new('1234567890123456')
    cipher = c.encrypt('blabblabblabblab')
    print(cipher.encode('hex'))

    h = SHA256.new('blabblabblabblab')
    print(h.hexdigest())
python pyinstaller.py/Users/alexey/secure_backup/cryptotest.py-F

它成功运行,但当我从控制台运行程序时,出现此输出:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/alexey/Downloads/pyinstaller-develop/PyInstaller/loader/pyimod03_importers.py", line 382, in load_module
    exec(bytecode, module.__dict__)
  File "build/bdist.macosx-10.9-intel/egg/Crypto/Cipher/_AES.py", line 7, in <module>
  File "build/bdist.macosx-10.9-intel/egg/Crypto/Cipher/_AES.py", line 6, in __bootstrap__
ImportError: dlopen(/var/folders/nd/1m2t9wmx4jv1gdw_h0s9sp3w0000gp/T/_MEI81X1du/Crypto/Cipher/_AES.so, 2): image not found
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/Users/alexey/Downloads/pyinstaller develope/pyinstaller/loader/pyimod03\u importers.py”,第382行,在加载模块中
exec(字节码、模块、指令)
文件“build/bdist.macosx-10.9-intel/egg/Crypto/Cipher/_AES.py”,第7行,在
文件“build/bdist.macosx-10.9-intel/egg/Crypto/Cipher/_AES.py”,第6行,在引导程序中__
导入错误:dlopen(/var/folders/nd/1m2t9wmx4jv1gdw_h0s9sp3w0000gp/T/_MEI81X1du/Crypto/Cipher/_AES.so,2):找不到图像

--hidden import=Crypto.Cipher.\u AES也不起作用

wx等的相同错误。请查看我的博客@dsgdfg,你能在这里翻译你的博客吗?