pyinstaller找不到pyinstaller.exe

Som*_*ude 5 python errno pyinstaller

使用pyinstaller时,我无法将某些代码作为.exe文件运行,即使成功将其转换为.exe文件,它也找不到模块Crypto(如果有帮助,我正在使用pycrypto),所以我将导入从

from Crypto.Hash import SHA26
Run Code Online (Sandbox Code Playgroud)

import Crypto
from Crypto import Hash
from Crypto.Hash import SHA26
Run Code Online (Sandbox Code Playgroud)

然后我再次尝试使用

pyinstaller DONT_RUN.py -F --debug
Run Code Online (Sandbox Code Playgroud)

但是现在它给了我错误

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\username\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\pyinstaller.exe\\__main__.pyo'
Run Code Online (Sandbox Code Playgroud)

我尝试将Crypto列为隐藏导入,但没有用

我不介意当前问题没有得到解决,我只是想能够将文件作为.exe文件运行,所以如果我只需要做其他事情,请这么说。