[英]Docker - ModuleNotFoundError: No module named 'drf-spectacular'
I'm trying to add drf_spectacular, but when I run container, I get this error: Error massage我正在尝试添加 drf_spectacular,但是当我运行容器时,出现此错误:错误按摩
drf_spectacular is aviable on installed python package in my container: Installed packages drf_spectacular 在我的容器中安装的 python package 上可用:已安装的软件包
requirements.txt要求.txt
Django>=4.0.4,<4.1
djangorestframework>=3.13.1,<3.14
psycopg2>=2.8.6,<2.9
django-filter>=22.1,<22.2
drf-spectacular>=0.22.1,<0.23
The module name is drf_spectacular
, not drf-spectacular
.模块名称是drf_spectacular
,而不是drf-spectacular
。 See the installation docs: https://github.com/tfranzel/drf-spectacular#installation请参阅安装文档: https://github.com/tfranzel/drf-spectacular#installation
The module is named drf_spectacular, you have a dash there instead of an underscore.该模块名为 drf_spectacular,你有一个破折号而不是下划线。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.