python - 没有模块名称'configparser' | PyInstaller
问题描述
我已使用 pyinstaller 将我的 .py 文件转换为 .exe
pyinstaller newpass.py
它使exe文件成功!但是当我打开文件时,它显示了这个错误:
错误来自文件“encdec.py”第 1 行,但我在该文件中的代码如下。
from passlib.context import CryptContext
from cryptography.fernet import Fernet
(当我运行我的主要 python 文件时,我的程序完美运行!)
一旦我打开文件,它就会显示此错误并且程序关闭。
注意:-我没有在任何文件中导入“配置解析器”。
我的文件结构如下:-
在这里,newpass.py 是我希望转换为 exe 的主文件
解决方案
尝试执行pip install configparsor
或pip3 install configparsor
取决于您的 python 版本。
推荐阅读
- reactjs - 渲染平面列表时缺少图像
- django - Django + backgroundtask + AWS Elasticbeanstalk 部署超时
- linux - 运行高内存使用率的进程“oka” - Linux NAS - Asustor AS5202T
- c++ - 在 MPI 中共享数组的一部分
- javascript - Vuetify Search Textfield in APpbar,背景褪色,点击展开
- sql-server - 找到一个条件存在但为空或对另一个条件没有价值的地方?
- docker - 如何检查集群是否已在 Couchbase 中初始化?
- c++ - Pimpl 成语和交换
- r - 执行基于相同时间范围的计算
- azure - Azure Synapse Analytics 版本控制