热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

python说没有请求模块_为什么PyInstaller没有检测到请求模块?

我使用PyInstaller从python3项目中生成一个.exe文件。在问题是.exe文件中的这个错误Traceback(mostrecentcalllast):Filesrc

我使用PyInstaller从python3项目中生成一个.exe文件。在

问题是.exe文件中的这个错误Traceback (most recent call last):

File "src\parser\bla.py", line 25, in get_b

File "src\parser\blabla.py", line 32, in __init__

File "src\parser\blablabla.py", line 9, in get_b_a

AttributeError: module 'requests' has no attribute 'get'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "", line 147, in

File "", line 141, in main

File "", line 57, in saving_a

File "src\parser\bla.py", line 26, in get_a

AttributeError: module 'requests' has no attribute 'exceptions'

main returned -1

我的规格是这样的

^{pr2}$

为什么PyInstaller不能正确检测请求模块?

请求包是2.9.1

PyInstaller 3.1版



推荐阅读
author-avatar
mobiledu2502881283
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有