在本地运行web应用时发现ModuleNotFound

2024-04-25 00:50:19 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图在GitHub上本地运行该项目,如说明中所述,但得到ModuleNotFound错误,尽管我已经克隆了整个项目,并按照说明中所述的正确方式进行了操作。你知道吗

我无法理解这一点。请查找存储库here。你知道吗

This is the error message I'm getting while trying to run the server locally.


Tags: 项目githubhere错误方式正试图modulenotfound
1条回答
网友
1楼 · 发布于 2024-04-25 00:50:19

当您试图导入未安装的库时,这是一个常见错误。 要解决此问题,必须通过以下方式安装库:

pip install bootstrapform

或使用以下方法安装项目所附的所有要求:

pip install -r requirements.txt

然后将它附加到django设置中的包列表中,在项目中它是4th_umpire/web/cfd/settings.py。你知道吗

INSTALLED_APPS = [
'bootstrapform',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'fourth_umpire',
'bootstrapform',

]

相关问题 更多 >