How to fix spacemacs importmagic and/or epc not found?

Did you

pip3 install importmagic epc 

in the python environment you're working in?


pip install importmagic epc should work.

If not, check this variable: python-shell-interpreter, this is the python which need to install the packages.


I had the same problem running spacemacs and lsp-mode for python. It turned out that I hadn't activated lsp on that directory / project and it wasn't running.

Once the lsp layer was running again, then the importmagic and epc errors went away.