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

我使用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版

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值