Pylint in Spyder is raising "E401 Unable to import" whithin conda environment

51 views
Skip to first unread message

Claudio Vergari

unread,
Sep 6, 2020, 11:36:11 PM9/6/20
to spyder

Hi,

I am having some troubles with Spyder and pylint. I run spyder in a conda environment, and it works fine: I can import packages that are only installed in the environment. However, when I launch code analysis (F8), pylint complains that it cannot import them, with an error E0401: Unable to import 'package'.

Just as an example, flask is installed in my environment but not in the main workspace. import flask works fine in Spyder's console, but E0401 is raised by pylint.

Any help would be appreciated!
Claudio
Reply all
Reply to author
Forward
0 new messages