Scrapy import module items error

后端 未结 1 527
北海茫月
北海茫月 2020-12-20 06:36

My project structure:

kmss/
├── kmss
│   ├── __init__.py
│   ├── items.py
│   ├── pipelines.py
│   ├── settings.py
│   └── spiders
│       ├── __init__.py
│          


        
相关标签:
1条回答
  • 2020-12-20 07:04

    Please try from ..items import KmssItem
    P.S. Absolute vs Relative Imports in Python

    0 讨论(0)
提交回复
热议问题