Skip to content
Advertisement

ModuleNotFoundError: No module named ‘sympy’

I’m on MacOSX Mojave 10.14.6 on a MacBook Pro 2015. So I pip installed sympy, right?

I head over to my shell, run python3, and do:

JavaScript

Just to be sure, I pip installed again just to make sure.

JavaScript

My pip list also includes sympy as sympy 1.4.

What’s wrong here? Is there another setup step I’ve missed?

Advertisement

Answer

Apparently all I had to do was

python3 -m pip install sympy

Mac being weird with two built in pythons and a third python for user.

Pro tip: use a virualenv.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement