gpt4 book ai didi

python - 没有名为 'requests_toolbelt' 的模块

转载 作者:行者123 更新时间:2023-12-01 00:25:52 38 4
gpt4 key购买 nike

所以,我正在尝试将我的 python 应用程序上传到 heroku,但是当我使用带有“requests_toolbelt”的脚本时,它说找不到。

这是我的日志:

Traceback (most recent call last):
File "girl.py", line 12, in <module>
from Coffe import CoffeAPI
File "/app/CoffeAPI/__init__.py", line 29, in <module>
from requests_toolbelt import MultipartEncoder
ImportError: No module named 'requests_toolbelt'

这是我的requeriments.txt:
requests-toolbelt==0.7.1
moviepy==0.2.2.11
requests==2.13.0

我需要特定的构建包来运行“requests_toolbelt”吗?

最佳答案

您是否尝试过使用命令行安装软件包?
将命令行导航到安装 python 的路径:

>path\easy_install.exe requests_toolbelt

或者
>path\easy_install.exe requests-toolbelt

或者
>path\python -m pip install requests_toolbelt

希望这可以帮助你

关于python - 没有名为 'requests_toolbelt' 的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44991463/

38 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com