Mackit New

Mackit — Cache cleaner for macOS developers: scans regenerable caches left by Xcode / Node / Flutter and more, risk-labeled, so you can reclaim disk space.

Learn more
Notice We stopped publishing new developer articles in June 2024. Thank you for visiting. Archived posts
知识

scrapy执行shell命令报错modulenotfounderror: no module named

   

开发环境

win10 + visual studio code

使用scrapy爬取一个电影网站的名字数据时,执行

scrapy shell https://www.xxxx.com/e/1.html

报错:

import win32apimodulenotfounderror: no module named 'win32api'

在网上查了半天,研究了好多大神的方法,最后,

解决方案

是一个缺少依赖包的错误,好似发生在windows系统中,只要给python装个库pypiwin32。

pip install pypiwin32

后面便妥妥的了。