首页 > 解决方案 > 无法导入“scrapy_splash”pylint(导入错误)

问题描述

尝试在 VS Code 中导入 Splash Request 时,我收到以下错误消息:

Unable to import 'scrapy_splash' pylint(import-error)

你知道为什么会这样吗?我已经启动并运行了 Splash,并且该软件包已安装在我的环境中。我正在使用 Python 3.7

这是一个屏幕截图

标签: python-3.xscrapypylintscrapy-splash

解决方案


问题解决了,我是在错误的环境中。您可以在命令palette(Ctrl+Shift+P)中更改环境并输入Python:选择Interpreter


推荐阅读